summaryrefslogtreecommitdiff
path: root/tools/py3tool.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-06 13:25:26 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-06 13:25:26 -0600
commitbb726ca19f434f5055c0efceefe48d89469fcbbe (patch)
tree889782afaf67fd5acb5f222969251871c0c46e5a /tools/py3tool.py
parent7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff)
downloadnumpy-bb726ca19f434f5055c0efceefe48d89469fcbbe.tar.gz
2to3: Apply `print` fixer.
Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
Diffstat (limited to 'tools/py3tool.py')
-rwxr-xr-xtools/py3tool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/py3tool.py b/tools/py3tool.py
index 07c01c42b..45a8def4c 100755
--- a/tools/py3tool.py
+++ b/tools/py3tool.py
@@ -18,7 +18,7 @@ When running py3tool again, only changed files are re-processed, which
makes the test-bugfix cycle faster.
"""
-from __future__ import division, absolute_import
+from __future__ import division, absolute_import, print_function
from optparse import OptionParser
import shutil
@@ -80,6 +80,7 @@ FIXES_TO_SKIP = [
'import',
'imports',
'imports2',
+ 'print',
]
skip_fixes= []