projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da292f4
)
fix list comprehension used in string test in Parsing.py
author
Stefan Behnel
<scoder@users.berlios.de>
Mon, 15 Nov 2010 07:54:35 +0000
(08:54 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Mon, 15 Nov 2010 07:54:35 +0000
(08:54 +0100)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index 322a2b8245f70a753979b9979335050fdd006468..76847c28364d5bffa68542722c5f8524d6a02d31 100644
(file)
--- 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 == '(':