projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bb1a0
)
After the removal of SET_LINENO, PyCode_Addr2Line has always been
author
Michael W. Hudson
<mwh@python.net>
Sat, 22 Feb 2003 13:07:53 +0000
(13:07 +0000)
committer
Michael W. Hudson
<mwh@python.net>
Sat, 22 Feb 2003 13:07:53 +0000
(13:07 +0000)
called to find tb_lineno -- even if Py_OptimizeFlag is true.
So don't call it again when printing the traceback.
Python/traceback.c
patch
|
blob
|
history
diff --git
a/Python/traceback.c
b/Python/traceback.c
index 27c69b68e5eab7264e203b9c8453b18c09b16314..b8edf139644da6db8fc845202fb598815f1b743d 100644
(file)
--- a/
Python/traceback.c
+++ b/
Python/traceback.c
@@
-238,9
+238,6
@@
tb_printinternal(tracebackobject *tb, PyObject *f, int limit)
}
while (tb != NULL && err == 0) {
if (depth <= limit) {
- if (Py_OptimizeFlag)
- tb->tb_lineno = PyCode_Addr2Line(
- tb->tb_frame->f_code, tb->tb_lasti);
err = tb_displayline(f,
PyString_AsString(
tb->tb_frame->f_code->co_filename),