mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Don't have trace() skip the top frame; return them all.
This commit is contained in:
parent
6526bf863e
commit
f170d7fea7
2 changed files with 7 additions and 6 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue