mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-31299: make it possible to filter out frames from tracebacks (GH-28067)
This commit is contained in:
parent
22fe0eb13c
commit
863154c929
4 changed files with 34 additions and 1 deletions
|
@ -515,6 +515,9 @@ class StackSummary(list):
|
|||
last_name = None
|
||||
count = 0
|
||||
for frame in self:
|
||||
formatted_frame = self.format_frame(frame)
|
||||
if formatted_frame is None:
|
||||
continue
|
||||
if (last_file is None or last_file != frame.filename or
|
||||
last_line is None or last_line != frame.lineno or
|
||||
last_name is None or last_name != frame.name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue