From 2b59143d23120aae7f5819d9810debcb71b0c61f Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 6 Jul 2010 08:24:36 +0200 Subject: [PATCH] minor cleanup --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2