Commit 1df5fa30 authored by Guido van Rossum's avatar Guido van Rossum

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

parent af31543c
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment