Commit 2b59143d authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup

parent c400bbd5
......@@ -782,7 +782,7 @@ def p_list_maker(s):
return ExprNodes.ComprehensionNode(
pos, loop=loop, append=append, target=target,
# list comprehensions leak their loop variable in Py2
has_local_scope = s.context.language_level > 2)
has_local_scope = s.context.language_level >= 3)
else:
if s.sy == ',':
s.next()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment