diff options
Diffstat (limited to 'numpy/compat/_inspect.py')
-rw-r--r-- | numpy/compat/_inspect.py | 14 |
1 files changed, 7 insertions, 7 deletions
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))) |