Hacked By AnonymousFox
�
�Q�f�� � �� � d Z ddlZddlZddlZddlZddlZddlmZ g d�Z d9d�Z
d� Zd:d�Zd9d�Z
d9d �Zd
ZdZ G d� d
� Z e� Zd� Zeedddfd�Zeeddfd�Zefd�Zd� Zefd�Zd;d�Zd<d�Zd;d�Zd=d�Zd:d�Zd:d�Zd� Z G d� d� Z!d� Z"d� Z#d � Z$d!� Z%d"Z& G d#� d$e'� Z(d%� Z) ejT d&g d'�d(d)g�*� Z+d+� Z,d,Z-d-� Z. G d.� d/� Z/ G d0� d1� Z0d2Z1d3Z2d4Z3d5Z4d6� Z5d7� Z6d8� Z7y)>z@Extract, format and print information about Python stack traces.� N)�suppress)�
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 � � |�t j }t j | � j � D ] }t ||d�� � y)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 �items �0/opt/alt/python312/lib64/python3.12/traceback.py�
print_listr$ s= � � �|��z�z���&�&�~�6�=�=�?��
�d��2�&� @� c �H � t j | � j � S )a� Format a list of tuples or FrameSummary objects for printing.
Given a list of tuples or FrameSummary objects as returned by
extract_tb() or extract_stack(), return a list of strings ready
for printing.
Each string in the resulting list corresponds to the item with the
same index in the argument list. Each string ends in a newline;
the strings may contain internal newlines as well, for those items
whose source text line is not None.
)r r r )r! s r# r r s � � �!�!�.�1�8�8�:�:r% c �4 � t t | |�� |�� y)a Print up to 'limit' stack trace entries from the traceback 'tb'.
If 'limit' is omitted or None, all entries are printed. If 'file'
is omitted or None, the output goes to sys.stderr; otherwise
'file' should be an open file or file-like object with a write()
method.
��limit�r N)r$ r )�tbr) r s r# r r / s � � �z�"�E�*��6r% c �8 � t | |�� j � S )z5A shorthand for 'format_list(extract_tb(tb, limit))'.r( )r r �r+ r) s r# r
r
9 s � ��b��&�-�-�/�/r% c �B � t j t | � |�� S )a#
Return a StackSummary object representing a list of
pre-processed entries from traceback.
This is useful for alternate formatting of stack traces. If
'limit' is omitted or None, all entries are extracted. A
pre-processed stack trace entry is a FrameSummary object
containing attributes filename, lineno, name, and line
representing the information that is usually printed for a stack
trace. The line is a string with leading and trailing
whitespace stripped; if the source is not available it is None.
r( )r � _extract_from_extended_frame_gen�_walk_tb_with_full_positionsr- s r# r r = s&