summaryrefslogtreecommitdiff
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-14 18:44:48 +0000
committerGuido van Rossum <guido@python.org>1992-01-14 18:44:48 +0000
commit1df5fa30a9912a888f93f5ec2c118bd2cd7d5e2d (patch)
tree43d868f801ed9b1ad1108c78adc040f9576e587f /Python/traceback.c
parentaf31543c0462e77574e5f122fc800a4bfda03b4f (diff)
downloadcpython-1df5fa30a9912a888f93f5ec2c118bd2cd7d5e2d.tar.gz
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 f3a1358cf6..bcec4904e2 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);