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/numarray/session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'numpy/numarray/session.py') diff --git a/numpy/numarray/session.py b/numpy/numarray/session.py index 32a28cca0..818c57bc8 100644 --- a/numpy/numarray/session.py +++ b/numpy/numarray/session.py @@ -72,7 +72,7 @@ Saved modules are re-imported at load time but any "state" in the module which is not restored by a simple import is lost. """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function __all__ = ['load', 'save'] @@ -126,8 +126,8 @@ def _callers_modules(): def _errout(*args): for a in args: - print >>sys.stderr, a, - print >>sys.stderr + print(a, end=' ', file=sys.stderr) + print(file=sys.stderr) def _verbose(*args): if VERBOSE: -- cgit v1.2.1