From ee6641f2e71a1d512ee08d5e6965dd297f18d5cc Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 Aug 2024 16:32:20 -0300 Subject: [PATCH] style: Fix formatting and encoding in base_coder.py --- aider/coders/base_coder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 2e7b8b659..033b40b63 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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