mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-09 06:05:00 +00:00
refactor to use io.write_text
This commit is contained in:
parent
0ea52b412f
commit
b46dffbb20
5 changed files with 16 additions and 15 deletions
|
@ -66,7 +66,7 @@ class WholeFileCoder(Coder):
|
|||
edited.add(fname)
|
||||
if not self.dry_run:
|
||||
new_lines = "".join(new_lines)
|
||||
full_path.write_text(new_lines)
|
||||
self.io.write_text(full_path, new_lines)
|
||||
|
||||
fname = None
|
||||
new_lines = []
|
||||
|
@ -125,6 +125,6 @@ class WholeFileCoder(Coder):
|
|||
edited.add(fname)
|
||||
if not self.dry_run:
|
||||
new_lines = "".join(new_lines)
|
||||
Path(full_path).write_text(new_lines)
|
||||
self.io.write_text(full_path, new_lines)
|
||||
|
||||
return edited
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue