Commit 8bbf1ce0 authored by Stefan Behnel's avatar Stefan Behnel

avoid generating trace frame init code if the function has no code object

parent e94bf900
......@@ -2206,7 +2206,8 @@ class CCodeWriter(object):
self.putln('__Pyx_TraceDeclarations')
def put_trace_frame_init(self, codeobj=None):
self.putln('__Pyx_TraceFrameInit(%s)' % (codeobj or 'NULL'))
if codeobj:
self.putln('__Pyx_TraceFrameInit(%s)' % codeobj)
def put_trace_call(self, name, pos, nogil=False):
self.putln('__Pyx_TraceCall("%s", %s[%s], %s, %d, %s);' % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment