mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
style: fix string quotes and whitespace in commands.py
This commit is contained in:
parent
fc6c01a9a5
commit
6cec44e402
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue