From 4fabd474d30ce2e070beb79c3b66bd1450a2aa38 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 30 Oct 2010 18:44:29 +0200 Subject: [PATCH] fix decorators in external .pxd files after last commit --- Cython/Compiler/ParseTreeTransforms.py | 2 ++ 1 file changed, 2 insertions(+) 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': -- 2.26.2