From: Stefan Behnel Date: Mon, 29 Oct 2012 22:46:21 +0000 (+0100) Subject: fix parser crash X-Git-Tag: 0.18b1~195 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61d06109280afe0b480d650141778fca69b419a2;p=platform%2Fupstream%2Fpython-cython.git fix parser crash --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 52427e3..6e313dd 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -2467,7 +2467,7 @@ def p_c_arg_decl(s, ctx, in_pyfunc, cmethod_flag = 0, nonempty = 0, annotation = p_test(s) if s.sy == '=': s.next() - if 'pxd' in s.level: + if 'pxd' in ctx.level: if s.sy not in ['*', '?']: error(pos, "default values cannot be specified in pxd files, use ? or *") default = ExprNodes.BoolNode(1)