From f5ca16257615359352045516b3eaad41d09fc85d Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 29 Oct 2024 12:43:56 -0700 Subject: [PATCH] style: fix whitespace and comment formatting --- aider/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index c473db5c1..e15938cc3 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1246,7 +1246,7 @@ class Commands: output = f"{announcements}\n{settings}" self.io.tool_output(output) - #ai add cmd_save(fname) that generates a file that cmd_load can read! + # ai add cmd_save(fname) that generates a file that cmd_load can read! def cmd_load(self, args): "Load and execute commands from a file" if not args.strip(): @@ -1283,12 +1283,12 @@ class Commands: for fname in sorted(self.coder.abs_fnames): rel_fname = self.coder.get_rel_fname(fname) f.write(f"/add {rel_fname}\n") - + # Write commands to add read-only files for fname in sorted(self.coder.abs_read_only_fnames): rel_fname = self.coder.get_rel_fname(fname) f.write(f"/read-only {rel_fname}\n") - + self.io.tool_output(f"Saved commands to {args.strip()}") except Exception as e: self.io.tool_error(f"Error saving commands to file: {e}")