tb_here() can now get the lasti and lineno arguments from the frame.
diff --git a/Python/traceback.c b/Python/traceback.c
index f3a1358..bcec490 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -112,13 +112,11 @@
static tracebackobject *tb_current = NULL;
int
-tb_here(frame, lasti, lineno)
+tb_here(frame)
frameobject *frame;
- int lasti;
- int lineno;
{
tracebackobject *tb;
- tb = newtracebackobject(tb_current, frame, lasti, lineno);
+ tb = newtracebackobject(tb_current, frame, frame->f_lasti, frame->f_lineno);
if (tb == NULL)
return -1;
XDECREF(tb_current);