/snap/core20/2769/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc414640644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc135560644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2769/usr/lib/python3.8/__pycache__/traceback.cpython-38.pyc (19938B)
U yi;\@s:dZddlZddlZddlZddlZddddddd d d d d ddddddddgZd3ddZddZd4ddZd5dd Z d6ddZ dZ dZ d7dd Z d8d dZd!dZd"d#Zd$d%Zd9d&d Zd:d'd Zd;d(d Zdd+dZd,dZGd-ddZd.dZd/dZd0ZGd1ddeZGd2ddZdS)?z@Extract, format and print information about Python stack traces.N extract_stack extract_tbformat_exceptionformat_exception_only format_list format_stack format_tb print_exc format_excprint_exception print_last print_stackprint_tb clear_frames FrameSummary StackSummaryTracebackException walk_stackwalk_tbcCs4|dkrtj}t|D]}t||ddqdS)zyPrint the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file.Nfileend)sysstderrr from_listformatprint)extracted_listritemr /usr/lib/python3.8/traceback.py print_listsr"cCst|S)aFormat 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. )rrr)rr r r!rs cCstt||d|ddS)aPrint 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. limitrN)r"r)tbr$rr r r!r-scCst||dS)z5A shorthand for 'format_list(extract_tb(tb, limit))'.r#)rrr&r$r r r!r7scCstjt||dS)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#)rextractrr'r r r!r;s zG The above exception was the direct cause of the following exception: zF During handling of the above exception, another exception occurred: TcCsB|dkrtj}tt||||dj|dD]}t||ddq*dS)aPrint exception up to 'limit' stack trace entries from 'tb' to 'file'. This differs from print_tb() in the following ways: (1) if traceback is not None, it prints a header "Traceback (most recent call last):"; (2) it prints the exception type and value after the stack trace; (3) if type is SyntaxError and value has the appropriate format, it prints the line where the syntax error occurred with a caret on the next line indicating the approximate position of the error. Nr#chainrr)rrrtyperr)etypevaluer&r$rr*liner r r!r Ws cCs ttt||||dj|dS)azFormat a stack trace and the exception information. The arguments have the same meaning as the corresponding arguments to print_exception(). The return value is a list of strings, each ending in a newline and some containing internal newlines. When these lines are concatenated and printed, exactly the same text is printed as does print_exception(). r#r))listrr+r)r,r-r&r$r*r r r!rls cCstt||dS)aFormat the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError exceptions, it contains several lines that (when printed) display detailed information about where the syntax error occurred. The message indicating which exception occurred is always the last string in the list. N)r/rr)r,r-r r r!r|scCs.t|}|dks|sd|}n d||f}|S)Nz%s z%s: %s ) _some_str)r,r-valuestrr.r r r!_format_final_exc_lines    r2cCs*z t|WSdt|jYSXdS)Nz)strr+__name__)r-r r r!r0s r0cCstt|||ddS)z>Shorthand for 'print_exception(*sys.exc_info(), limit, file)'.r$rr*N)r rexc_infor5r r r!r scCsdtt||dS)z%Like print_exc() but return a string.rr$r*)joinrrr6r7r r r!r scCs.ttdstdttjtjtj|||dS)znThis is a shorthand for 'print_exception(sys.last_type, sys.last_value, sys.last_traceback, limit, file)'. last_typezno last exceptionN)hasattrr ValueErrorr r9 last_valuelast_tracebackr5r r r!r s cCs*|dkrtj}tt||d|ddS)zPrint a stack trace from its invocation point. The optional 'f' argument can be used to specify an alternate stack frame at which to start. The optional 'limit' and 'file' arguments have the same meaning as for print_exception(). Nr#r%)r _getframef_backr"r)fr$rr r r!r s cCs"|dkrtj}tt||dS)z5Shorthand for 'format_list(extract_stack(f, limit))'.Nr#)rr>r?rr)r@r$r r r!rs cCs0|dkrtj}tjt||d}||S)asExtract the raw traceback from the current stack frame. The return value has the same format as for extract_tb(). The optional 'f' and 'limit' arguments have the same meaning as for print_stack(). Each item in the list is a quadruple (filename, line number, function name, text), and the entries are in order from oldest to newest stack frame. Nr#)rr>r?rr(rreverse)r@r$stackr r r!rs  cCs8|dk r4z|jWntk r*YnX|j}qdS)zEClear all references to local variables in the frames of a traceback.N)tb_frameclear RuntimeErrortb_nextr&r r r!rs c@sZeZdZdZdZddddddZdd Zd d Zd d ZddZ ddZ e ddZ dS)ra,A single frame from a traceback. - :attr:`filename` The filename for the frame. - :attr:`lineno` The line within filename for the frame that was active when the frame was captured. - :attr:`name` The name of the function or method that was executing when the frame was captured. - :attr:`line` The text from the linecache module for the of code that was running when the frame was captured. - :attr:`locals` Either None if locals were not supplied, or a dict mapping the name to the repr() of the variable. )filenamelinenoname_linelocalsTN) lookup_linerLr.cCsB||_||_||_||_|r"|j|r8dd|Dnd|_dS)aConstruct a FrameSummary. :param lookup_line: If True, `linecache` is consulted for the source code line. Otherwise, the line will be looked up when first needed. :param locals: If supplied the frame locals, which will be captured as object representations. :param line: If provided, use this instead of looking up the line in the linecache. cSsi|]\}}|t|qSr )repr).0kvr r r! sz)FrameSummary.__init__..N)rHrIrJrKr.itemsrL)selfrHrIrJrMrLr.r r r!__init__s zFrameSummary.__init__cCs`t|tr:|j|jko8|j|jko8|j|jko8|j|jkSt|tr\|j|j|j|jf|kStSN) isinstancerrHrIrJrLtupler.NotImplementedrTotherr r r!__eq__s      zFrameSummary.__eq__cCs|j|j|j|jf|SrV)rHrIrJr.)rTposr r r! __getitem__szFrameSummary.__getitem__cCst|j|j|j|jgSrV)iterrHrIrJr.rTr r r!__iter__szFrameSummary.__iter__cCsdj|j|j|jdS)Nz7)rHrIrJ)rrHrIrJr`r r r!__repr__s zFrameSummary.__repr__cCsdS)Nr r`r r r!__len__szFrameSummary.__len__cCs&|jdkr t|j|j|_|jSrV)rK linecachegetlinerHrIstripr`r r r!r.s zFrameSummary.line) r4 __module__ __qualname____doc__ __slots__rUr\r^rarbrdpropertyr.r r r r!rs   ccs4|dkrtjj}|dk r0||jfV|j}qdS)zWalk a stack yielding the frame and line number for each frame. This will follow f.f_back from the given frame. If no frame is given, the current stack is used. Usually used with StackSummary.extract. N)rr>r?f_lineno)r@r r r!r$s   ccs"|dk r|j|jfV|j}qdS)zWalk a traceback yielding the frame and line number for each frame. This will follow tb.tb_next (and thus is in the opposite order to walk_stack). Usually used with StackSummary.extract. N)rC tb_linenorFrGr r r!r1sc@s:eZdZdZeddddddZedd Zd d ZdS) rzA stack of frames.NTFr$ lookup_linescapture_localsc Cs|dkr(ttdd}|dk r(|dkr(d}|dk rV|dkrFt||}ntj|| d}|}t}|D]Z\}}|j} | j} | j } | | t | |j |r|j} nd} |t| || d| dqf|D]} t | q|r|D] }|jq|S)a?Create a StackSummary from a traceback or stack object. :param frame_gen: A generator that yields (frame, lineno) tuples to include in the stack. :param limit: None to include all frames or the number of frames to include. :param lookup_lines: If True, lookup lines for each frame immediately, otherwise lookup is deferred until the frame is rendered. :param capture_locals: If True, the local variables from each frame will be captured as object representations into the FrameSummary. Ntracebacklimitr)maxlenF)rMrL)getattrr itertoolsislice collectionsdequesetf_code co_filenameco_nameaddre lazycache f_globalsf_localsappendr checkcacher.) klass frame_genr$rqrrresultfnamesr@rIcorHrJrr r r!r(As@     zStackSummary.extractc CsLt}|D]<}t|tr$||q |\}}}}|t||||dq |S)z Create a StackSummary object from a supplied list of FrameSummary objects or old-style list of tuples. )r.)rrWrr)ra_listrframerHrIrJr.r r r!rqs    zStackSummary.from_listc Csng}d}d}d}d}|D]}|dksT||jksT|dksT||jksT|dksT||jkr|tkr|t8}|d|d|dkr|dndd|j}|j}|j}d}|d7}|tkrqg}|d |j|j|j|jr|d |j|jr t |j D]\}} |d j|| d q|d |q|tkrj|t8}|d|d|dkr^dndd|S) aFormat the stack ready for printing. Returns a list of strings ready for printing. Each string in the resulting list corresponds to a single frame from the stack. Each string ends in a newline; the strings may contain internal newlines as well, for those items with source text lines. For long sequences of the same frame and line, the first few repetitions are shown, followed by a summary line stating the exact number of further repetitions. Nrz [Previous line repeated z more timesrz] z File "{}", line {}, in {}  {} z {name} = {value} )rJr-) rHrIrJ_RECURSIVE_CUTOFFrrr.rgrLsortedrSr8) rTr last_file last_line last_namecountrrowrJr-r r r!rsZ   zStackSummary.format)r4rhrirj classmethodr(rrr r r r!r>s/ c@s^eZdZdZdddddddZedd Zd d Zd d ZddZ ddZ ddddZ dS)raAn exception ready for rendering. The traceback module captures enough attributes from the original exception to this intermediary form to ensure that no references are held, while still being able to fully print or format it. Use `from_exception` to create TracebackException instances from exception objects, or the constructor to create TracebackException instances from individual components. - :attr:`__cause__` A TracebackException of the original *__cause__*. - :attr:`__context__` A TracebackException of the original *__context__*. - :attr:`__suppress_context__` The *__suppress_context__* value from the original exception. - :attr:`stack` A `StackSummary` representing the traceback. - :attr:`exc_type` The class of the original traceback. - :attr:`filename` For syntax errors - the filename where the error occurred. - :attr:`lineno` For syntax errors - the linenumber where the error occurred. - :attr:`text` For syntax errors - the text where the error occurred. - :attr:`offset` For syntax errors - the offset into the text where the error occurred. - :attr:`msg` For syntax errors - the compiler error message. NTFr$rqrr_seenc CsJ|dkrt}|t||r\|jdk r\t|j|kr\tt|j|j|jj|d||d}nd}|r|jdk rt|j|krtt|j|j|jj|d||d} nd} ||_| |_|r|jnd|_t j t ||||d|_ ||_ t||_|r8t|tr8|j|_|j} | dk rt| nd|_|j|_|j|_|j|_|rF|dS)NFrrp)rzr~id __cause__rr+ __traceback__ __context____suppress_context__rr(rrBexc_typer0_str issubclass SyntaxErrorrHrIr3textoffsetmsg _load_lines) rTr exc_value exc_tracebackr$rqrrrcausecontextlnor r r!rUsd      zTracebackException.__init__cOs|t|||jf||S)z.Create a TracebackException from an exception.)r+r)clsexcargskwargsr r r!from_exceptionsz!TracebackException.from_exceptioncCs6|jD] }|jq|jr"|j|jr2|jdS)z7Private API. force all lines in the stack to be loaded.N)rBr.rrr)rTrr r r!rs   zTracebackException._load_linescCs |j|jkSrV)__dict__rZr r r!r\szTracebackException.__eq__cCs|jSrV)rr`r r r!__str__szTracebackException.__str__ccs6|jdkrtd|jVdS|jj}|jj}|dkr@|d|}t|jts^t||jVdSd}|jdk rd|j pxd|jVn|j dk rd|j }|j }|j }|dk rd| V|dk r| d }tt||d }|d|}d d |D}d d|V|jp d}d|||VdS)aFormat the exception part of the traceback. The return value is a generator of strings, each ending in a newline. Normally, the generator emits a single string; however, for SyntaxError exceptions, it emits several lines that (when printed) display detailed information about where the syntax error occurred. The message indicating which exception occurred is always the last string in the output. N)__main__builtins.rz File "{}", line {} zz ({})r rcss|]}|r|pdVqdS) N)isspace)rOcr r r! Msz;TracebackException.format_exception_only..z {}^ zz {}: {}{} )rr2rrirhrrrIrrHrrrgrstripminlenlstripr8r)rTstypesmodfilename_suffixbadliner caretspacerr r r!r"s<          z(TracebackException.format_exception_onlyr)ccs|rT|jdk r*|jj|dEdHtVn*|jdk rT|jsT|jj|dEdHtV|jrpdV|jEdH|EdHdS)aFormat the exception. If chain is not *True*, *__cause__* and *__context__* will not be formatted. The return value is a generator of strings, each ending in a newline and some containing internal newlines. `print_exception` is a wrapper around this method which just prints the lines to a file. The message indicating which exception occurred is always the last string in the output. Nr)z#Traceback (most recent call last): )rr_cause_messagerr_context_messagerBr)rTr*r r r!rRs   zTracebackException.format) r4rhrirjrUrrrr\rrrr r r r!rs :  0)N)NN)N)N)NNT)NT)NNT)NT)NNT)NNN)NN)NN) rjrxrvrer__all__r"rrrrrrr rrr2r0r r r r rrrrrrrr/rrr r r r!sb          A  z