tb_here() can now get the lasti and lineno arguments from the frame.

This commit is contained in:
Guido van Rossum 1992-01-14 18:44:48 +00:00
parent ee3a299c39
commit c6515d12b7

View file

@ -112,13 +112,11 @@ newtracebackobject(next, frame, lasti, lineno)
static tracebackobject *tb_current = NULL; static tracebackobject *tb_current = NULL;
int int
tb_here(frame, lasti, lineno) tb_here(frame)
frameobject *frame; frameobject *frame;
int lasti;
int lineno;
{ {
tracebackobject *tb; tracebackobject *tb;
tb = newtracebackobject(tb_current, frame, lasti, lineno); tb = newtracebackobject(tb_current, frame, frame->f_lasti, frame->f_lineno);
if (tb == NULL) if (tb == NULL)
return -1; return -1;
XDECREF(tb_current); XDECREF(tb_current);