]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
tb_here() can now get the lasti and lineno arguments from the frame.
authorGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:44:48 +0000 (18:44 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 Jan 1992 18:44:48 +0000 (18:44 +0000)
Python/traceback.c

index f3a1358cf60b58b89535ac91492d77f91a9cc297..bcec4904e20bfd04502a5b25f279562faa9ca3b3 100644 (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);