From: Stefan Behnel Date: Sat, 30 Oct 2010 16:44:29 +0000 (+0200) Subject: fix decorators in external .pxd files after last commit X-Git-Tag: 0.14.alpha0~281 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4fabd474d30ce2e070beb79c3b66bd1450a2aa38;p=cython.git fix decorators in external .pxd files after last commit --- diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 3e6a398b..8098828a 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -789,6 +789,8 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations): return self.visit_with_directives(body, directives) def visit_CVarDefNode(self, node): + if not node.decorators: + return node for dec in node.decorators: for directive in self.try_to_parse_directives(dec.decorator) or (): if directive is not None and directive[0] == u'locals':