Commit 4fabd474 authored by Stefan Behnel's avatar Stefan Behnel

fix decorators in external .pxd files after last commit

parent 765f2b7a
...@@ -789,6 +789,8 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations): ...@@ -789,6 +789,8 @@ class InterpretCompilerDirectives(CythonTransform, SkipDeclarations):
return self.visit_with_directives(body, directives) return self.visit_with_directives(body, directives)
def visit_CVarDefNode(self, node): def visit_CVarDefNode(self, node):
if not node.decorators:
return node
for dec in node.decorators: for dec in node.decorators:
for directive in self.try_to_parse_directives(dec.decorator) or (): for directive in self.try_to_parse_directives(dec.decorator) or ():
if directive is not None and directive[0] == u'locals': if directive is not None and directive[0] == u'locals':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment