fix undecorated C functions after decorator implementation :)
authorStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:53:11 +0000 (08:53 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 11 Jul 2008 06:53:11 +0000 (08:53 +0200)
Cython/Compiler/ParseTreeTransforms.py

index 1e5b2ee05f5b10fed4de48cc26cde876e00dd7e2..9d03cba44266eb5218ae0e161c646e0cb087b891 100644 (file)
@@ -219,7 +219,7 @@ class WithTransform(CythonTransform):
 
 class DecoratorTransform(CythonTransform):
 
-    def visit_FuncDefNode(self, func_node):
+    def visit_DefNode(self, func_node):
         if not func_node.decorators:
             return func_node