From: Stefan Behnel Date: Mon, 15 Nov 2010 07:54:35 +0000 (+0100) Subject: fix list comprehension used in string test in Parsing.py X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5ef060aec8d19d3af18eada1c33b4ceb90df29b7;p=cython.git fix list comprehension used in string test in Parsing.py --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 322a2b82..76847c28 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -2184,7 +2184,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag, cname = ctx.namespace + "::" + name if name == 'operator' and ctx.visibility == 'extern' and nonempty: op = s.sy - if [c in '+-*/<=>!%&|([^~,' for c in op]: + if [1 for c in op if c in '+-*/<=>!%&|([^~,']: s.next() # Handle diphthong operators. if op == '(':