From 505a463fb72cd78103a0828f0156f1b6009650c9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 11 Jul 2008 08:53:11 +0200 Subject: [PATCH] fix undecorated C functions after decorator implementation :) --- Cython/Compiler/ParseTreeTransforms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 1e5b2ee0..9d03cba4 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -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 -- 2.26.2