From f90c4d3f337b2256cb831670d9f23e41d9a44aca Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Sat, 13 Nov 2010 13:54:07 +0100 Subject: [PATCH] Fix DebugTransform compiler crash --- Cython/Compiler/ParseTreeTransforms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py index b3ced456..bba734a0 100644 --- a/Cython/Compiler/ParseTreeTransforms.py +++ b/Cython/Compiler/ParseTreeTransforms.py @@ -1582,7 +1582,8 @@ class DebugTransform(CythonTransform): def visit_NameNode(self, node): if (self.register_stepinto and node.type.is_cfunction and - getattr(node, 'is_called', False)): + getattr(node, 'is_called', False) and + node.entry.func_cname is not None): # 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