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/testing/numpytest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/testing/numpytest.py') diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py index 4e2409e8d..4fa9364b1 100644 --- a/numpy/testing/numpytest.py +++ b/numpy/testing/numpytest.py @@ -1,4 +1,4 @@ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function import os import sys @@ -46,7 +46,7 @@ def importall(package): try: exec('import %s as m' % (name)) except Exception as msg: - print 'Failed importing %s: %s' %(name, msg) + print('Failed importing %s: %s' %(name, msg)) continue importall(m) return -- cgit v1.2.1