Print the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file.
(extracted_list, file=None)
| 36 | |
| 37 | |
| 38 | def print_list(extracted_list, file=None): |
| 39 | """Print the list of tuples as returned by extract_tb() or |
| 40 | extract_stack() as a formatted stack trace to the given file.""" |
| 41 | if file is None: |
| 42 | file = sys.stderr |
| 43 | for item in StackSummary.from_list(extracted_list).format(): |
| 44 | print(item, file=file, end="") |
| 45 | |
| 46 | def format_list(extracted_list): |
| 47 | """Format a list of tuples or FrameSummary objects for printing. |
no test coverage detected
searching dependent graphs…