[Python-modules-commits] [fparser] 08/09: py3

Alastair McKinstry mckinstry at moszumanska.debian.org
Fri Jul 28 10:45:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

mckinstry pushed a commit to branch dev-python3
in repository fparser.

commit f7740918b96e6224ec22765fd48aa33a0d935c77
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Tue Jul 25 18:53:13 2017 +0100

    py3
---
 src/fparser/scripts/read.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/fparser/scripts/read.py b/src/fparser/scripts/read.py
index 33781e1..16fbf8d 100644
--- a/src/fparser/scripts/read.py
+++ b/src/fparser/scripts/read.py
@@ -63,6 +63,7 @@
 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
 # DAMAGE.
 
+from __future__ import print_function
 import os
 import sys
 ### START UPDATE SYS.PATH ###
@@ -79,10 +80,10 @@ def runner (parser, options, args):
         reader = FortranFileReader(filename)
         if options.task=='show':
             for item in reader:
-                print >> sys.stdout, item
+                print (item, file=sys.stdout)
                 sys.stdout.flush()
         else:
-            raise NotImplementedError(`options.task`)
+            raise NotImplementedError(repr(options.task))
         
 
 def main ():

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/fparser.git



More information about the Python-modules-commits mailing list