From: Mark Florisson Date: Fri, 5 Nov 2010 20:50:20 +0000 (+0100) Subject: Default 'is_called' attribute to False if not set in DebugTransform X-Git-Tag: 0.14.beta0~1^2~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bdfe330fbde87fadd5cb1997107c5d0b011be2a;p=cython.git Default 'is_called' attribute to False if not set in DebugTransform --- 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