summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-14 18:44:48 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-14 18:44:48 (GMT)
commitc6515d12b79146445c264de3dd0100c68a8f25cd (patch)
tree43d868f801ed9b1ad1108c78adc040f9576e587f /Python/traceback.c
parentee3a299c396593a277060e0b991b62179eed1086 (diff)
downloadcpython-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.c6
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);