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
1 changed files with 2 additions and 4 deletions

View File

@ -112,13 +112,11 @@ newtracebackobject(next, frame, lasti, lineno)
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);