From: Stefan Behnel Date: Wed, 11 Mar 2009 16:34:43 +0000 (+0100) Subject: prevent parser syntax from allowing 'cdef cpdef ...' X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8fdca5efe5bb29b8e68d2c5f11334c80283acc83;p=cython.git prevent parser syntax from allowing 'cdef cpdef ...' --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 2ec67e41..62c041aa 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -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()