summaryrefslogtreecommitdiff
path: root/numpy/compat/_inspect.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-04-06 13:25:26 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-04-06 13:25:26 -0600
commitbb726ca19f434f5055c0efceefe48d89469fcbbe (patch)
tree889782afaf67fd5acb5f222969251871c0c46e5a /numpy/compat/_inspect.py
parent7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff)
downloadnumpy-bb726ca19f434f5055c0efceefe48d89469fcbbe.tar.gz
2to3: Apply `print` fixer.
Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
Diffstat (limited to 'numpy/compat/_inspect.py')
-rw-r--r--numpy/compat/_inspect.py14
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)))