diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
commit | bb726ca19f434f5055c0efceefe48d89469fcbbe (patch) | |
tree | 889782afaf67fd5acb5f222969251871c0c46e5a /numpy/core/getlimits.py | |
parent | 7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff) | |
download | numpy-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/core/getlimits.py')
-rw-r--r-- | numpy/core/getlimits.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/core/getlimits.py b/numpy/core/getlimits.py index 606038677..57ad60543 100644 --- a/numpy/core/getlimits.py +++ b/numpy/core/getlimits.py @@ -1,7 +1,7 @@ """Machine limits for Float32 and Float64 and (long double) if available... """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function __all__ = ['finfo','iinfo'] @@ -296,11 +296,11 @@ max = %(max)s if __name__ == '__main__': f = finfo(ntypes.single) - print 'single epsilon:',f.eps - print 'single tiny:',f.tiny + print('single epsilon:',f.eps) + print('single tiny:',f.tiny) f = finfo(ntypes.float) - print 'float epsilon:',f.eps - print 'float tiny:',f.tiny + print('float epsilon:',f.eps) + print('float tiny:',f.tiny) f = finfo(ntypes.longfloat) - print 'longfloat epsilon:',f.eps - print 'longfloat tiny:',f.tiny + print('longfloat epsilon:',f.eps) + print('longfloat tiny:',f.tiny) |