File: //lib/python3.10/__pycache__/traceback.cpython-310.pyc
o
    E�hnf  �                   @   sJ  d Z ddlZddlZddlZddlZg d�Zd8dd�Zdd� Zd9dd	�Zd8d
d�Z	d8dd
�Z
dZdZG dd� d�Z
e
� Zdd� Zeedddfdd�Zeeddfdd�Zefdd�Zdd� Zdd� Zd:dd �Zd;d!d"�Zd:d#d$�Zd<d%d&�Zd9d'd(�Zd9d)d*�Zd+d,� ZG d-d.� d.�Zd/d0� Zd1d2� Zd3ZG d4d5� d5e �Z!G d6d7� d7�Z"dS )=z@Extract, format and print information about Python stack traces.�    N)�
extract_stack�
extract_tb�format_exception�format_exception_only�format_list�format_stack�	format_tb�	print_exc�
format_exc�print_exception�
print_last�print_stack�print_tb�clear_frames�FrameSummary�StackSummary�TracebackException�
walk_stack�walk_tbc                 C   s4   |du rt j}t�| ��� D ]	}t||dd� qdS )zyPrint the list of tuples as returned by extract_tb() or
    extract_stack() as a formatted stack trace to the given file.N� ��file�end)�sys�stderrr   �	from_list�format�print)�extracted_listr   �item� r    � /usr/lib/python3.10/traceback.py�
print_list   s
   �r"