minor cleanup
authorStefan Behnel <scoder@users.berlios.de>
Tue, 6 Jul 2010 06:24:36 +0000 (08:24 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 6 Jul 2010 06:24:36 +0000 (08:24 +0200)
Cython/Compiler/Parsing.py

index 1cd0a67e8d51e32993e39b23bba83a086905abf1..2eebb20198a764c7133035e714d1cbaead409544 100644 (file)
@@ -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()