Commit 5ef060ae authored by Stefan Behnel's avatar Stefan Behnel

fix list comprehension used in string test in Parsing.py

parent da292f4a
...@@ -2184,7 +2184,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag, ...@@ -2184,7 +2184,7 @@ def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag,
cname = ctx.namespace + "::" + name cname = ctx.namespace + "::" + name
if name == 'operator' and ctx.visibility == 'extern' and nonempty: if name == 'operator' and ctx.visibility == 'extern' and nonempty:
op = s.sy op = s.sy
if [c in '+-*/<=>!%&|([^~,' for c in op]: if [1 for c in op if c in '+-*/<=>!%&|([^~,']:
s.next() s.next()
# Handle diphthong operators. # Handle diphthong operators.
if op == '(': if op == '(':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment