From 8fdca5efe5bb29b8e68d2c5f11334c80283acc83 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 11 Mar 2009 17:34:43 +0100 Subject: [PATCH] prevent parser syntax from allowing 'cdef cpdef ...' --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.26.2