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/f2py/f2py_testing.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/f2py/f2py_testing.py')
-rw-r--r-- | numpy/f2py/f2py_testing.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/f2py/f2py_testing.py b/numpy/f2py/f2py_testing.py index b0f396ad4..e5ba8a9d5 100644 --- a/numpy/f2py/f2py_testing.py +++ b/numpy/f2py/f2py_testing.py @@ -1,4 +1,4 @@ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function import sys import re @@ -34,13 +34,13 @@ def run(runtest,test_functions,repeat=1): else: diff_memusage2 = memusage() - start_memusage if diff_memusage2!=diff_memusage: - print 'memory usage change at step %i:' % i,\ + print('memory usage change at step %i:' % i,\ diff_memusage2-diff_memusage,\ - fname + fname) diff_memusage = diff_memusage2 current_memusage = memusage() - print 'run',repeat*len(test_functions),'tests',\ - 'in %.2f seconds' % ((jiffies()-start_jiffies)/100.0) + print('run',repeat*len(test_functions),'tests',\ + 'in %.2f seconds' % ((jiffies()-start_jiffies)/100.0)) if start_memusage: - print 'initial virtual memory size:',start_memusage,'bytes' - print 'current virtual memory size:',current_memusage,'bytes' + print('initial virtual memory size:',start_memusage,'bytes') + print('current virtual memory size:',current_memusage,'bytes') |