[Scipy-svn] r7172 - trunk/tools

scipy-svn at scipy.org scipy-svn at scipy.org
Sun Feb 27 06:30:06 EST 2011


Author: rgommers
Date: 2011-02-27 05:30:06 -0600 (Sun, 27 Feb 2011)
New Revision: 7172

Modified:
   trunk/tools/py3tool.py
Log:
ENH: do not make backup copies when running 2to3.

Backups are not used and were being included in installers by default.

Thanks to Christoph Gohlke for the patch.

Modified: trunk/tools/py3tool.py
===================================================================
--- trunk/tools/py3tool.py	2011-02-27 09:36:43 UTC (rev 7171)
+++ trunk/tools/py3tool.py	2011-02-27 11:30:06 UTC (rev 7172)
@@ -329,7 +329,7 @@
         _old_stdout = sys.stdout
         try:
             sys.stdout = StringIO()
-            lib2to3.main.main("lib2to3.fixes", ['-w'] + flags.split()+filenames)
+            lib2to3.main.main("lib2to3.fixes", ['-w', '-n'] + flags.split()+filenames)
         finally:
             sys.stdout = _old_stdout
 




More information about the Scipy-svn mailing list