diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-21 01:29:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-21 01:29:32 (GMT) |
commit | 03943d9808c89b8542fd7d5f3296b0aa575cf838 (patch) | |
tree | d467fa3cb7eebb622b708b24901d69e28e57fcf5 /Lib | |
parent | e1a36a5214c1f7c22f5f3eb10ab575f1955b9c23 (diff) | |
download | cpython-03943d9808c89b8542fd7d5f3296b0aa575cf838.zip cpython-03943d9808c89b8542fd7d5f3296b0aa575cf838.tar.gz cpython-03943d9808c89b8542fd7d5f3296b0aa575cf838.tar.bz2 |
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
........
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/lib2to3/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib2to3/main.py b/Lib/lib2to3/main.py index a4d148d..0d65a2e 100644 --- a/Lib/lib2to3/main.py +++ b/Lib/lib2to3/main.py @@ -40,7 +40,8 @@ class StdoutRefactoringTool(refactor.RefactoringTool): # 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: |