style: Fix formatting and encoding in base_coder.py

This commit is contained in:
Paul Gauthier (aider) 2024-08-09 16:32:20 -03:00
parent 25c36503ff
commit ee6641f2e7

View file

@ -1664,8 +1664,8 @@ class Coder:
if not os.path.exists(full_path):
self.io.tool_error(f"Error: File {path} does not exist. Skipping edits.")
continue
if not self.dry_run:
with open(full_path, 'w', encoding=self.io.encoding) as f:
with open(full_path, "w", encoding=self.io.encoding) as f:
f.write(content)
return