style: fix string quotes and whitespace in commands.py

This commit is contained in:
Paul Gauthier (aider) 2024-10-29 12:41:10 -07:00
parent fc6c01a9a5
commit 6cec44e402

View file

@ -1253,7 +1253,7 @@ class Commands:
return return
try: try:
with open(args.strip(), 'r') as f: with open(args.strip(), "r") as f:
commands = f.readlines() commands = f.readlines()
except FileNotFoundError: except FileNotFoundError:
self.io.tool_error(f"File not found: {args}") self.io.tool_error(f"File not found: {args}")
@ -1264,9 +1264,9 @@ class Commands:
for cmd in commands: for cmd in commands:
cmd = cmd.strip() cmd = cmd.strip()
if not cmd or cmd.startswith('#'): if not cmd or cmd.startswith("#"):
continue continue
self.io.tool_output(f"\nExecuting command: {cmd}") self.io.tool_output(f"\nExecuting command: {cmd}")
self.run(cmd) self.run(cmd)