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/doc/collectinput.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/doc/collectinput.py')
-rwxr-xr-x | numpy/f2py/doc/collectinput.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/f2py/doc/collectinput.py b/numpy/f2py/doc/collectinput.py index 396e4a912..317fde5b2 100755 --- a/numpy/f2py/doc/collectinput.py +++ b/numpy/f2py/doc/collectinput.py @@ -19,7 +19,7 @@ Usage: collectinput # in and out are stdin and stdout """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function __version__ = "0.0" @@ -68,16 +68,16 @@ for l in fileinput.input(fi): except: flag=0 if flag==0: sys.stderr.write('Could not open a file: '+fn+'\n') - print l+l1 + print(l+l1) continue elif flag==1: sys.stderr.write(fn+'\n') - print '%%%%% Begin of '+fn - print getoutput(sys.argv[0]+' < '+fn) - print '%%%%% End of '+fn + print('%%%%% Begin of '+fn) + print(getoutput(sys.argv[0]+' < '+fn)) + print('%%%%% End of '+fn) else: sys.stderr.write('Could not extract a file name from: '+l) - print l+l1 + print(l+l1) else: - print l+l1 + print(l+l1) sys.stdout.close() |