fix list comprehension used in string test in Parsing.py
authorStefan Behnel <scoder@users.berlios.de>
Mon, 15 Nov 2010 07:54:35 +0000 (08:54 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 15 Nov 2010 07:54:35 +0000 (08:54 +0100)
Cython/Compiler/Parsing.py

index 322a2b8245f70a753979b9979335050fdd006468..76847c28364d5bffa68542722c5f8524d6a02d31 100644 (file)
@@ -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 == '(':