[Python-checkins] r67892 - in python/trunk/Lib/lib2to3: main.py

benjamin.peterson python-checkins at python.org
Sun Dec 21 02:29:32 CET 2008


Author: benjamin.peterson
Date: Sun Dec 21 02:29:32 2008
New Revision: 67892

Log:
Merged revisions 67809 via svnmerge from 
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r67809 | benjamin.peterson | 2008-12-15 21:54:45 -0600 (Mon, 15 Dec 2008) | 1 line
  
  fix logic error
........


Modified:
   python/trunk/Lib/lib2to3/   (props changed)
   python/trunk/Lib/lib2to3/main.py

Modified: python/trunk/Lib/lib2to3/main.py
==============================================================================
--- python/trunk/Lib/lib2to3/main.py	(original)
+++ python/trunk/Lib/lib2to3/main.py	Sun Dec 21 02:29:32 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