projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c1b9e9
)
fix line number reporting in AST stack traces
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 05:55:55 +0000
(06:55 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 4 Dec 2010 05:55:55 +0000
(06:55 +0100)
Cython/Compiler/Visitor.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Visitor.py
b/Cython/Compiler/Visitor.py
index 411500a8c493bd07626bb1d96e248b3db075d90c..dddef04e491332875ade97e77888f359f6e4f34e 100644
(file)
--- a/
Cython/Compiler/Visitor.py
+++ b/
Cython/Compiler/Visitor.py
@@
-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_first
lineno)
+
frame.f_
lineno)
nodes.append((node, method_name, pos))
last_traceback = stacktrace
stacktrace = stacktrace.tb_next