diff options
author | Guido van Rossum <guido@python.org> | 1992-01-14 18:44:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-14 18:44:48 (GMT) |
commit | c6515d12b79146445c264de3dd0100c68a8f25cd (patch) | |
tree | 43d868f801ed9b1ad1108c78adc040f9576e587f /Python/traceback.c | |
parent | ee3a299c396593a277060e0b991b62179eed1086 (diff) | |
download | cpython-c6515d12b79146445c264de3dd0100c68a8f25cd.zip cpython-c6515d12b79146445c264de3dd0100c68a8f25cd.tar.gz cpython-c6515d12b79146445c264de3dd0100c68a8f25cd.tar.bz2 |
tb_here() can now get the lasti and lineno arguments from the frame.
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 6 |
1 files 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); |