summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLib/lib2to3/refactor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/refactor.py b/Lib/lib2to3/refactor.py
index 82c1507edd..17304a8761 100755
--- a/Lib/lib2to3/refactor.py
+++ b/Lib/lib2to3/refactor.py
@@ -353,7 +353,7 @@ class RefactoringTool(object):
self.log_debug("Not writing changes to %s", filename)
return
if write:
- self.write_file(next_text, filename, old_text)
+ self.write_file(new_text, filename, old_text)
def write_file(self, new_text, filename, old_text=None):
"""Writes a string to a file.