From 7ad8fefb71eedbccff654ec8dc40c06b89af8b9b Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Sun, 17 Apr 2011 16:15:53 +0200 Subject: ENH: do not make backup copies when running 2to3. Copied from scipy commit f7dae4f2. --- tools/py3tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/py3tool.py') diff --git a/tools/py3tool.py b/tools/py3tool.py index bb0a66b30..5be7d6c8e 100755 --- a/tools/py3tool.py +++ b/tools/py3tool.py @@ -268,7 +268,7 @@ def sync_2to3(src, dst, patchfile=None, clean=False): _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 -- cgit v1.2.1