summaryrefslogtreecommitdiffstats
path: root/Modules/_hotshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_hotshot.c')
-rw-r--r--Modules/_hotshot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Modules/_hotshot.c b/Modules/_hotshot.c
index 2ca4486..e12e5e5 100644
--- a/Modules/_hotshot.c
+++ b/Modules/_hotshot.c
@@ -888,12 +888,10 @@ tracer_callback(ProfilerObject *self, PyFrameObject *frame, int what,
case PyTrace_LINE:
if (self->linetimings)
- return pack_lineno_tdelta(self, PyCode_Addr2Line(frame->f_code,
- frame->f_lasti),
+ return pack_lineno_tdelta(self, frame->f_lineno),
get_tdelta(self));
else
- return pack_lineno(self, PyCode_Addr2Line(frame->f_code,
- frame->f_lasti));
+ return pack_lineno(self, frame->f_lineno);
default:
/* ignore PyTrace_EXCEPTION */