Commit 8fdca5ef authored by Stefan Behnel's avatar Stefan Behnel

prevent parser syntax from allowing 'cdef cpdef ...'

parent 355765b3
......@@ -1503,7 +1503,7 @@ def p_statement(s, ctx, first_statement = 0):
if s.sy == 'cdef':
cdef_flag = 1
s.next()
if s.sy == 'cpdef':
elif s.sy == 'cpdef':
cdef_flag = 1
overridable = 1
s.next()
......
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