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/compat/_inspect.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'numpy/compat/_inspect.py') diff --git a/numpy/compat/_inspect.py b/numpy/compat/_inspect.py index 902d609a9..931364f6d 100644 --- a/numpy/compat/_inspect.py +++ b/numpy/compat/_inspect.py @@ -5,7 +5,7 @@ significanly contributes to numpy import times. Importing this copy has almost no overhead. """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function import types @@ -211,11 +211,11 @@ if __name__ == '__main__': def foo(x, y, z=None): return None - print inspect.getargs(foo.__code__) - print getargs(foo.__code__) + print(inspect.getargs(foo.__code__)) + print(getargs(foo.__code__)) - print inspect.getargspec(foo) - print getargspec(foo) + print(inspect.getargspec(foo)) + print(getargspec(foo)) - print inspect.formatargspec(*inspect.getargspec(foo)) - print formatargspec(*getargspec(foo)) + print(inspect.formatargspec(*inspect.getargspec(foo))) + print(formatargspec(*getargspec(foo))) -- cgit v1.2.1