Skip to content

Commit a2da2d5

Browse files
committed
future: Update for print() function.
1 parent c4d0759 commit a2da2d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/future.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Parser for future statements
22
33
"""
4+
from __future__ import print_function
45

56
from compiler import ast, walk
67

@@ -66,9 +67,9 @@ def find_futures(node):
6667
from compiler import parseFile, walk
6768

6869
for file in sys.argv[1:]:
69-
print file
70+
print(file)
7071
tree = parseFile(file)
7172
v = FutureParser()
7273
walk(tree, v)
73-
print v.found
74-
print
74+
print(v.found)
75+
print()

0 commit comments

Comments
 (0)