Commit 7dc3409c authored by Stefan Behnel's avatar Stefan Behnel

fix line number reporting in AST stack traces

parent 4c1b9e9b
......@@ -105,7 +105,7 @@ class TreeVisitor(object):
code = frame.f_code
method_name = code.co_name
pos = (os.path.basename(code.co_filename),
code.co_firstlineno)
frame.f_lineno)
nodes.append((node, method_name, pos))
last_traceback = stacktrace
stacktrace = stacktrace.tb_next
......
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