[Python-checkins] r67809 - sandbox/trunk/2to3/lib2to3/main.py
benjamin.peterson
python-checkins at python.org
Tue Dec 16 04:54:45 CET 2008
Author: benjamin.peterson
Date: Tue Dec 16 04:54:45 2008
New Revision: 67809
Log:
fix logic error
Modified:
sandbox/trunk/2to3/lib2to3/main.py
Modified: sandbox/trunk/2to3/lib2to3/main.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/main.py (original)
+++ sandbox/trunk/2to3/lib2to3/main.py Tue Dec 16 04:54:45 2008
@@ -40,7 +40,8 @@
# Actually write the new file
super(StdoutRefactoringTool, self).write_file(new_text,
filename, old_text)
- shutil.copymode(filename, backup)
+ if not self.nobackups:
+ shutil.copymode(filename, backup)
def print_output(self, lines):
for line in lines:
More information about the Python-checkins
mailing list