From c6515d12b79146445c264de3dd0100c68a8f25cd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 14 Jan 1992 18:44:48 +0000 Subject: tb_here() can now get the lasti and lineno arguments from the frame. --- Python/traceback.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 @@ 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); -- cgit v0.12