File: //opt/alt/python311/lib64/python3.11/__pycache__/traceback.cpython-311.pyc
hc d Z ddlZddlZddlZddlZddlZddlmZ g dZ d2dZ
d Zd3dZd2dZ
d2d Zd
ZdZ G d d
Z e Zd ZeedddfdZeeddfdZefdZd ZefdZd4dZd5dZd4dZd6dZd3dZd3dZd Z G d d Z!d Z"d Z#d Z$d! Z%d"Z& G d# d$e' Z(d% Z) ej* d&g d'd(d)g* Z+d+ Z,d,Z-d- Z. G d. d/ Z/ G d0 d1 Z0dS )7z@Extract, format and print information about Python stack traces. N)suppress)
extract_stack
extract_tbformat_exceptionformat_exception_onlyformat_listformat_stack format_tb print_exc
format_excprint_exception
print_lastprint_stackprint_tbclear_framesFrameSummaryStackSummaryTracebackException
walk_stackwalk_tbc |t j }t | D ]}t ||d dS )zyPrint the list of tuples as returned by extract_tb() or
extract_stack() as a formatted stack trace to the given file.N fileend)sysstderrr from_listformatprint)extracted_listr items 0/opt/alt/python311/lib64/python3.11/traceback.py
print_listr$ s[ |z&&~66==?? ' '
d2&&&&&' ' c Z t | 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$ !!.1188:::r% c F t t | | | dS )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.
limitr N)r$ r )tbr) r s r# r r / s* z"E***666666r% c H t | | S )z5A shorthand for 'format_list(extract_tb(tb, limit))'.r( )r r r+ r) s r# r
r
9 s! b&&&--///r% c T t 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. 88$R(( 9 7 7 7r% zG
The above exception was the direct cause of the following exception:
zF
During handling of the above exception, another exception occurred:
c e Zd Zd ZdS ) _Sentinelc dS )Nz
<implicit>