File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import print_function
2
+
1
3
import sys
2
4
import glob
3
5
import os
@@ -20,7 +22,7 @@ def parse_fortran_template(input,output):
20
22
21
23
# Read input file
22
24
23
- program = open (input , "rb " )
25
+ program = open (input , "r " )
24
26
lines = program .readlines ()
25
27
program .close ()
26
28
@@ -34,7 +36,7 @@ def parse_fortran_template(input,output):
34
36
except :
35
37
break
36
38
37
- print " Block found from lines " + str (istart )+ " to " + str (iend )
39
+ print ( " Block found from lines " + str (istart )+ " to " + str (iend ) )
38
40
39
41
types = lines [istart ].strip ().rsplit ()
40
42
@@ -63,5 +65,5 @@ def parse_fortran_template(input,output):
63
65
64
66
65
67
for program in glob .glob (os .path .join ('templates/' ,'*_template.f90' )):
66
- print "Processing %s" % program
68
+ print ( "Processing %s" % program )
67
69
parse_fortran_template (program , program .replace ('_template.f90' ,'.f90' ).replace ('templates' ,'src' ))
You can’t perform that action at this time.
0 commit comments