Skip to content

Commit d0dbc46

Browse files
committed
Remove py2-incompatible use of print statement.
In python 2 print is a statement, not a function, so it cannot be used as the first argument to map().
1 parent 0da6086 commit d0dbc46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

boolean/boolean.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def parse(self, expr, simplify=False):
204204
if TRACE_PARSE:
205205
tokenized = list(tokenized)
206206
print('tokens:')
207-
map(print, tokenized)
207+
for t in tokenized:
208+
print(t)
208209
tokenized = iter(tokenized)
209210

210211
# the abstract syntax tree for this expression that will be build as we

0 commit comments

Comments
 (0)