From bb726ca19f434f5055c0efceefe48d89469fcbbe Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 6 Apr 2013 13:25:26 -0600 Subject: 2to3: Apply `print` fixer. Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078. --- numpy/f2py/doc/collectinput.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'numpy/f2py/doc/collectinput.py') 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() -- cgit v1.2.1