standardize on abs_root_path(), simplify get/apply_edit

This commit is contained in:
Paul Gauthier 2023-08-18 07:20:15 -07:00
parent f45bcbf8eb
commit e608a351f0
4 changed files with 19 additions and 17 deletions

View file

@ -22,7 +22,8 @@ class EditBlockCoder(Coder):
return edits
def apply_edits(self, edits):
for path, full_path, original, updated in edits:
for path, original, updated in edits:
full_path = self.abs_root_path(path)
content = self.io.read_text(full_path)
content = do_replace(full_path, content, original, updated)
if content: