summaryrefslogtreecommitdiffstats
path: root/Lib/inspect.py
diff options
context:
space:
mode:
authorKa-Ping Yee <ping@zesty.ca>2001-03-23 05:14:10 (GMT)
committerKa-Ping Yee <ping@zesty.ca>2001-03-23 05:14:10 (GMT)
commitf170d7fea7021843e7831832f5f11ca428699149 (patch)
treec0667394e21b3526ea55695432fe4946558a9a85 /Lib/inspect.py
parent6526bf863eff2ef78465ba90d19a280d6657bddf (diff)
downloadcpython-f170d7fea7021843e7831832f5f11ca428699149.zip
cpython-f170d7fea7021843e7831832f5f11ca428699149.tar.gz
cpython-f170d7fea7021843e7831832f5f11ca428699149.tar.bz2
Don't have trace() skip the top frame; return them all.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r--Lib/inspect.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py
index 57f991c..ef813a6 100644
--- a/Lib/inspect.py
+++ b/Lib/inspect.py
@@ -620,7 +620,6 @@ def getinnerframes(tb, context=1):
Each record contains a frame object, filename, line number, function
name, a list of lines of context, and index within the context."""
- tb = tb.tb_next
framelist = []
while tb:
framelist.append((tb.tb_frame,) + getframeinfo(tb, context))