From 9bdfe330fbde87fadd5cb1997107c5d0b011be2a Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Fri, 5 Nov 2010 21:50:20 +0100 Subject: [PATCH] Default 'is_called' attribute to False if not set in DebugTransform --- Cython/Compiler/ParseTreeTransforms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index 67bdf9c4..bc3514b3 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1554,7 +1554,9 @@ class DebugTransform(CythonTransform): return node def visit_NameNode(self, node): - if (self.register_stepinto and node.type.is_cfunction and node.is_called): + if (self.register_stepinto and + node.type.is_cfunction and + getattr(node, 'is_called', False)): # don't check node.entry.in_cinclude, as 'cdef extern: ...' # declared functions are not 'in_cinclude'. # This means we will list called 'cdef' functions as -- 2.26.2