projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c400bbd
)
minor cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 6 Jul 2010 06:24:36 +0000
(08:24 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 6 Jul 2010 06:24:36 +0000
(08:24 +0200)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index 1cd0a67e8d51e32993e39b23bba83a086905abf1..2eebb20198a764c7133035e714d1cbaead409544 100644
(file)
--- a/
Cython/Compiler/Parsing.py
+++ b/
Cython/Compiler/Parsing.py
@@
-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()