summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorJeroen Demeyer <jdemeyer@cage.ugent.be>2018-07-12 11:13:56 +0200
committerJeroen Demeyer <jdemeyer@cage.ugent.be>2018-07-12 11:13:56 +0200
commit76ea8735c038aee715b24ab7a6d18cdd061efb12 (patch)
tree20e9d7893cfa16d3fb5452807b1ccadc3d90a423 /Cython/Compiler/ModuleNode.py
parente5a3d9d6b2304dc25e69de6e82bf7f727494fe9e (diff)
downloadcython-76ea8735c038aee715b24ab7a6d18cdd061efb12.tar.gz
Allow C line in traceback also during module init
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 39184c3b1..d047ffa2a 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -2459,10 +2459,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.put_label(code.error_label)
for cname, type in code.funcstate.all_managed_temps():
code.put_xdecref(cname, type)
- # module state might not be ready for traceback generation with C-line handling yet
code.putln('if (%s) {' % env.module_cname)
code.putln('if (%s) {' % env.module_dict_cname)
- code.put_add_traceback("init %s" % env.qualified_name, include_cline=False)
+ code.put_add_traceback("init %s" % env.qualified_name)
code.globalstate.use_utility_code(Nodes.traceback_utility_code)
# Module reference and module dict are in global variables which might still be needed
# for cleanup, atexit code, etc., so leaking is better than crashing.