Don't have trace() skip the top frame; return them all.

This commit is contained in:
Ka-Ping Yee 2001-03-23 05:14:10 +00:00
parent 6526bf863e
commit f170d7fea7
2 changed files with 7 additions and 6 deletions

View file

@ -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))