From bb726ca19f434f5055c0efceefe48d89469fcbbe Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 6 Apr 2013 13:25:26 -0600 Subject: 2to3: Apply `print` fixer. Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078. --- numpy/oldnumeric/fix_default_axis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/oldnumeric/fix_default_axis.py') diff --git a/numpy/oldnumeric/fix_default_axis.py b/numpy/oldnumeric/fix_default_axis.py index cefa67239..57ab3ce78 100644 --- a/numpy/oldnumeric/fix_default_axis.py +++ b/numpy/oldnumeric/fix_default_axis.py @@ -34,7 +34,7 @@ std mean """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function __all__ = ['convertfile', 'convertall', 'converttree'] @@ -261,7 +261,7 @@ def convertfile(filename, import_change=False): filestr = getfile(filename) newstr, total = add_axis(filestr, import_change) if total > 0: - print "Changing ", filename + print("Changing ", filename) copyfile(filename, filestr) makenewfile(filename, newstr) sys.stdout.flush() -- cgit v1.2.1