fix decorators in external .pxd files after last commit
authorStefan Behnel <scoder@users.berlios.de>
Sat, 30 Oct 2010 16:44:29 +0000 (18:44 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 30 Oct 2010 16:44:29 +0000 (18:44 +0200)
Cython/Compiler/ParseTreeTransforms.py

index 3e6a398bf799b3218b808d0c9ab913fdb062f56b..8098828a2302d4a4b299f5b06ce706caf48ba577 100644 (file)
@@ -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':