Skip to content

Commit 2791594

Browse files
TunaLobsterElizabeth Fischer
authored andcommitted
Add future print_function for python2 to allow a python3 interperter to be used. (#49)
1 parent 705ba85 commit 2791594

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

blitz/generate/genstencils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
# Generates stencil code. This replaces the macros in stencil-et.h,
44
# which make it impossible to debug the generated code.
55

6+
from __future__ import print_function
7+
68
import sys
79

810
os=open(sys.argv[1],'w')
9-
print "Generating file %s"%sys.argv[1]
11+
print("Generating file %s"%sys.argv[1])
1012

1113
def BZ_ET_STENCIL_REDIRECT(name):
1214
stub="""

blitz/generate/makeloops.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# python version of the makeloops.cpp that generates the benchmark
44
# loops.
55

6+
from __future__ import print_function
7+
68
import time, pdb
79

810
# definitions of the loops (from loops.data)

0 commit comments

Comments
 (0)