From: Stefan Behnel Date: Tue, 6 Jul 2010 06:24:36 +0000 (+0200) Subject: minor cleanup X-Git-Tag: 0.13.beta0~2^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b59143d23120aae7f5819d9810debcb71b0c61f;p=cython.git minor cleanup --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 1cd0a67e..2eebb201 100644 --- 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()