/snap/core18/2979/usr/lib/python3.6/__pycache__
NameSizeModeActions
abc.cpython-36.pyc75150644editdlrm
aifc.cpython-36.pyc259430644editdlrm
antigravity.cpython-36.pyc7790644editdlrm
argparse.cpython-36.pyc604560644editdlrm
ast.cpython-36.pyc117040644editdlrm
asynchat.cpython-36.pyc68150644editdlrm
asyncore.cpython-36.pyc158380644editdlrm
base64.cpython-36.pyc170590644editdlrm
bdb.cpython-36.pyc170330644editdlrm
binhex.cpython-36.pyc120860644editdlrm
bisect.cpython-36.pyc26760644editdlrm
bz2.cpython-36.pyc112820644editdlrm
calendar.cpython-36.pyc258820644editdlrm
cgi.cpython-36.pyc284160644editdlrm
cgitb.cpython-36.pyc100800644editdlrm
chunk.cpython-36.pyc49000644editdlrm
cmd.cpython-36.pyc125750644editdlrm
code.cpython-36.pyc98360644editdlrm
codecs.cpython-36.pyc339000644editdlrm
codeop.cpython-36.pyc62700644editdlrm
colorsys.cpython-36.pyc33110644editdlrm
compileall.cpython-36.pyc82780644editdlrm
configparser.cpython-36.pyc452440644editdlrm
contextlib.cpython-36.pyc111580644editdlrm
copy.cpython-36.pyc70790644editdlrm
copyreg.cpython-36.pyc42440644editdlrm
cProfile.cpython-36.pyc42940644editdlrm
crypt.cpython-36.pyc22420644editdlrm
csv.cpython-36.pyc118550644editdlrm
datetime.cpython-36.pyc545110644editdlrm
decimal.cpython-36.pyc3510644editdlrm
difflib.cpython-36.pyc596420644editdlrm
dis.cpython-36.pyc141810644editdlrm
doctest.cpython-36.pyc755890644editdlrm
dummy_threading.cpython-36.pyc11020644editdlrm
enum.cpython-36.pyc234530644editdlrm
filecmp.cpython-36.pyc83050644editdlrm
fileinput.cpython-36.pyc131520644editdlrm
fnmatch.cpython-36.pyc28740644editdlrm
formatter.cpython-36.pyc175790644editdlrm
fractions.cpython-36.pyc184260644editdlrm
ftplib.cpython-36.pyc283570644editdlrm
functools.cpython-36.pyc240620644editdlrm
genericpath.cpython-36.pyc37260644editdlrm
getopt.cpython-36.pyc62170644editdlrm
getpass.cpython-36.pyc41770644editdlrm
gettext.cpython-36.pyc143060644editdlrm
glob.cpython-36.pyc42590644editdlrm
gzip.cpython-36.pyc162260644editdlrm
hashlib.cpython-36.pyc66920644editdlrm
heapq.cpython-36.pyc142920644editdlrm
hmac.cpython-36.pyc48360644editdlrm
imaplib.cpython-36.pyc421380644editdlrm
imghdr.cpython-36.pyc41500644editdlrm
imp.cpython-36.pyc96960644editdlrm
inspect.cpython-36.pyc797390644editdlrm
io.cpython-36.pyc33870644editdlrm
ipaddress.cpython-36.pyc623860644editdlrm
keyword.cpython-36.pyc17650644editdlrm
linecache.cpython-36.pyc37780644editdlrm
locale.cpython-36.pyc340300644editdlrm
lzma.cpython-36.pyc119920644editdlrm
macpath.cpython-36.pyc56410644editdlrm
macurl2path.cpython-36.pyc18670644editdlrm
mailbox.cpython-36.pyc637520644editdlrm
mailcap.cpython-36.pyc72090644editdlrm
mimetypes.cpython-36.pyc155530644editdlrm
modulefinder.cpython-36.pyc153660644editdlrm
netrc.cpython-36.pyc38360644editdlrm
nntplib.cpython-36.pyc337800644editdlrm
ntpath.cpython-36.pyc131900644editdlrm
nturl2path.cpython-36.pyc14990644editdlrm
numbers.cpython-36.pyc121420644editdlrm
opcode.cpython-36.pyc54130644editdlrm
operator.cpython-36.pyc139130644editdlrm
optparse.cpython-36.pyc480540644editdlrm
os.cpython-36.pyc296280644editdlrm
pathlib.cpython-36.pyc420070644editdlrm
pdb.cpython-36.pyc460940644editdlrm
pickle.cpython-36.pyc426910644editdlrm
pickletools.cpython-36.pyc660200644editdlrm
pipes.cpython-36.pyc78080644editdlrm
pkgutil.cpython-36.pyc162610644editdlrm
platform.cpython-36.pyc291970644editdlrm
plistlib.cpython-36.pyc280550644editdlrm
poplib.cpython-36.pyc133290644editdlrm
posixpath.cpython-36.pyc104560644editdlrm
pprint.cpython-36.pyc158240644editdlrm
profile.cpython-36.pyc139010644editdlrm
pstats.cpython-36.pyc218570644editdlrm
pty.cpython-36.pyc38610644editdlrm
pyclbr.cpython-36.pyc83650644editdlrm
pydoc.cpython-36.pyc837750644editdlrm
py_compile.cpython-36.pyc65440644editdlrm
queue.cpython-36.pyc87550644editdlrm
quopri.cpython-36.pyc57730644editdlrm
random.cpython-36.pyc193300644editdlrm
re.cpython-36.pyc140580644editdlrm
reprlib.cpython-36.pyc54000644editdlrm
rlcompleter.cpython-36.pyc57800644editdlrm
runpy.cpython-36.pyc79820644editdlrm
sched.cpython-36.pyc65640644editdlrm
secrets.cpython-36.pyc21620644editdlrm
selectors.cpython-36.pyc176970644editdlrm
shelve.cpython-36.pyc94580644editdlrm
shlex.cpython-36.pyc69700644editdlrm
shutil.cpython-36.pyc307040644editdlrm
signal.cpython-36.pyc25150644editdlrm
site.cpython-36.pyc165600644editdlrm
sitecustomize.cpython-36.pyc2120644editdlrm
smtpd.cpython-36.pyc266830644editdlrm
smtplib.cpython-36.pyc353400644editdlrm
sndhdr.cpython-36.pyc69130644editdlrm
socket.cpython-36.pyc220130644editdlrm
socketserver.cpython-36.pyc242500644editdlrm
sre_compile.cpython-36.pyc102780644editdlrm
sre_constants.cpython-36.pyc59720644editdlrm
sre_parse.cpython-36.pyc203580644editdlrm
ssl.cpython-36.pyc369390644editdlrm
stat.cpython-36.pyc38510644editdlrm
statistics.cpython-36.pyc181740644editdlrm
string.cpython-36.pyc79640644editdlrm
stringprep.cpython-36.pyc100300644editdlrm
struct.cpython-36.pyc3120644editdlrm
subprocess.cpython-36.pyc354850644editdlrm
sunau.cpython-36.pyc169380644editdlrm
symbol.cpython-36.pyc25170644editdlrm
symtable.cpython-36.pyc104280644editdlrm
sysconfig.cpython-36.pyc159160644editdlrm
tabnanny.cpython-36.pyc69750644editdlrm
tarfile.cpython-36.pyc630850644editdlrm
telnetlib.cpython-36.pyc180970644editdlrm
tempfile.cpython-36.pyc253090644editdlrm
textwrap.cpython-36.pyc136840644editdlrm
this.cpython-36.pyc12650644editdlrm
threading.cpython-36.pyc372340644editdlrm
timeit.cpython-36.pyc116030644editdlrm
token.cpython-36.pyc33200644editdlrm
tokenize.cpython-36.pyc186470644editdlrm
trace.cpython-36.pyc194950644editdlrm
traceback.cpython-36.pyc196460644editdlrm
tracemalloc.cpython-36.pyc172290644editdlrm
tty.cpython-36.pyc10720644editdlrm
turtle.cpython-36.pyc1317510644editdlrm
types.cpython-36.pyc82010644editdlrm
typing.cpython-36.pyc733060644editdlrm
uu.cpython-36.pyc34980644editdlrm
uuid.cpython-36.pyc209180644editdlrm
warnings.cpython-36.pyc132580644editdlrm
wave.cpython-36.pyc178850644editdlrm
weakref.cpython-36.pyc191430644editdlrm
webbrowser.cpython-36.pyc157970644editdlrm
xdrlib.cpython-36.pyc83020644editdlrm
zipapp.cpython-36.pyc55340644editdlrm
zipfile.cpython-36.pyc497280644editdlrm
_bootlocale.cpython-36.pyc9800644editdlrm
_collections_abc.cpython-36.pyc287970644editdlrm
_compat_pickle.cpython-36.pyc65660644editdlrm
_compression.cpython-36.pyc41040644editdlrm
_dummy_thread.cpython-36.pyc48510644editdlrm
_markupbase.cpython-36.pyc79910644editdlrm
_osx_support.cpython-36.pyc96840644editdlrm
_pydecimal.cpython-36.pyc1634020644editdlrm
_pyio.cpython-36.pyc713860644editdlrm
_sitebuiltins.cpython-36.pyc34350644editdlrm
_strptime.cpython-36.pyc159630644editdlrm
_sysconfigdata_m_linux_x86_64-linux-gnu.cpython-36.pyc187790644editdlrm
_threading_local.cpython-36.pyc64250644editdlrm
_weakrefset.cpython-36.pyc78280644editdlrm
__future__.cpython-36.pyc41670644editdlrm
__phello__.foo.cpython-36.pyc1190644editdlrm
Edit: /snap/core18/2979/usr/lib/python3.6/__pycache__/traceback.cpython-36.pyc (19646B)
3 Nqi[@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_tbcCs8|dkrtj}x$tj|jD]}t||ddqWdS)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_listritemr/usr/lib/python3.6/traceback.py print_listsr!cCstj|jS)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)rrrr 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. )limit)rN)r!r)tbr"rrrr r-scCst||djS)z5A shorthand for 'format_list(extract_tb(tb, limit))'.)r")rr)r#r"rrr 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")rextractr)r#r"rrr r;s zG The above exception was the direct cause of the following exception: zF During handling of the above exception, another exception occurred: TcCsF|dkrtj}x2tt||||dj|dD]}t||ddq,WdS)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. N)r")chainr)rr)rrrtyperr)etypevaluer#r"rr%linerrr 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%rrr rls cCstt||djS)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(rrr r|scCs0t|}|dks| r d|}n d||f}|S)Nz%s z%s: %s ) _some_str)r'r(valuestrr)rrr _format_final_exc_lines   r-c Cs"yt|Sdt|jSdS)Nz)strr&__name__)r(rrr r+sr+cCsttj|||ddS)z>Shorthand for 'print_exception(*sys.exc_info(), limit, file)'.)r"rr%N)r rexc_info)r"rr%rrr r scCsdjttj||dS)z%Like print_exc() but return a string.r)r"r%)joinrrr0)r"r%rrr 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 r2 last_valuelast_traceback)r"rr%rrr r s cCs*|dkrtjj}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(). N)r")r)r _getframef_backr!r)fr"rrrr r s cCs"|dkrtjj}tt||dS)z5Shorthand for 'format_list(extract_stack(f, limit))'.N)r")rr7r8rr)r9r"rrr rs cCs0|dkrtjj}tjt||d}|j|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. N)r")rr7r8rr$rreverse)r9r"stackrrr rs  c Cs<x6|dk r6y|jjWntk r,YnX|j}qWdS)zEClear all references to local variables in the frames of a traceback.N)tb_frameclear RuntimeErrortb_next)r#rrr rs  c@sReZdZdZdZdddd d d Zd d ZddZddZddZ 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_linerDr)cCsF||_||_||_||_|r"|j|rsz(FrameSummary.__init__..N)r@rArBrCr)dictitemsrD)selfr@rArBrErDr)rrr __init__s zFrameSummary.__init__cCs`t|tr:|j|jko8|j|jko8|j|jko8|j|jkSt|tr\|j|j|j|jf|kStS)N) isinstancerr@rArBrDtupler)NotImplemented)rMotherrrr __eq__s      zFrameSummary.__eq__cCs|j|j|j|jf|S)N)r@rArBr))rMposrrr __getitem__szFrameSummary.__getitem__cCst|j|j|j|jgS)N)iterr@rArBr))rMrrr __iter__szFrameSummary.__iter__cCsdj|j|j|jdS)Nz7)r@rArB)rr@rArB)rMrrr __repr__szFrameSummary.__repr__cCs&|jdkr tj|j|jj|_|jS)N)rC linecachegetliner@rAstrip)rMrrr r)s zFrameSummary.line)r@rArBrCrD) r/ __module__ __qualname____doc__ __slots__rNrSrUrWrXpropertyr)rrrr rs  ccs8|dkrtjjj}x|dk r2||jfV|j}qWdS)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)rr7r8f_lineno)r9rrr r"s    ccs&x |dk r |j|jfV|j}qWdS)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)r< tb_linenor?)r#rrr r/s c@s:eZdZdZeddddddZedd Zd d ZdS) rzA stack of frames.NTF)r" lookup_linescapture_localsc Cs|dkr(ttdd}|dk r(|dkr(d}|dk rV|dkrFtj||}ntj|| d}|}t}xb|D]Z\}}|j} | j} | j } |j | t j | |j |r|j} nd} |jt| || d| dqhWx|D]} t j| qW|rx|D] }|jqW|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)rErD)getattrr itertoolsislice collectionsdequesetf_code co_filenameco_nameaddrY lazycache f_globalsf_localsappendr checkcacher)) klass frame_genr"rdreresultfnamesr9rAcor@rBrtrrr r$?s6     zStackSummary.extractcCsPt}xD|D]<}t|tr&|j|q |\}}}}|jt||||dq W|S)z Create a StackSummary object from a supplied list of FrameSummary objects or old-style list of tuples. )r))rrOrru)rwa_listryframer@rArBr)rrr ros     zStackSummary.from_listc Csxg}d}d}d}d}x$|D]}|dksX||jksX|dksX||jksX|dksX||jkr|tkr|t8}|jd|d|dkrdndd|j}|j}|j}d}|d7}|tkrqg}|jd j|j|j|j|jr|jd j|jj|jr(x0t |jj D]\}} |jd j|| d qW|jdj |qW|tkrt|t8}|jd|d|dkrhdndd|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 {} z {name} = {value} )rBr() r@rArB_RECURSIVE_CUTOFFrurr)r[rDsortedrLr1) rMry last_file last_line last_namecountr}rowrBr(rrr rsD   "zStackSummary.format)r/r\r]r^ classmethodr$rrrrrr 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. NTF)r"rdre_seenc Cs<|dkrt}|jt||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|j nd|_ t j t ||||d|_ ||_t||_|ot|tr*|j|_t|j|_|j|_|j|_|j|_|r8|jdS)NF)r"rdrer)r"rdre)rmrqid __cause__rr& __traceback__ __context__ exc_traceback__suppress_context__rr$rr;exc_typer+_str issubclass SyntaxErrorr@r.rAtextoffsetmsg _load_lines) rMr exc_valuerr"rdrercausecontextrrr rNsT      zTracebackException.__init__cOs|t|||jf||S)z.Create a TracebackException from an exception.)r&r)clsexcargskwargsrrr from_exception sz!TracebackException.from_exceptioncCs:x|jD] }|jqW|jr&|jj|jr6|jjdS)z7Private API. force all lines in the stack to be loaded.N)r;r)rrr)rMr}rrr rs    zTracebackException._load_linescCs |j|jkS)N)__dict__)rMrRrrr rSszTracebackException.__eq__cCs|jS)N)r)rMrrr __str__szTracebackException.__str__c cs|jdkrtd|jVdS|jj}|jj}|dkr@|d|}t|jts^t||jVdS|jpfd}t|j ptd}dj ||V|j }|j }|dk rdj |j V|dk r|jd }tt||d }|d|j}d d |D}d j dj|V|jp d}dj ||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 emites 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.z?z File "{}", line {} z {}  r~css|]}|jr|pdVqdS) N)isspace)rGcrrr rJHsz;TracebackException.format_exception_only..z {}^ rzz{}: {} )rr)rr-rr]r\rrr@r.rArrrr[rstripminlenlstripr1r) rMstypesmodr@rAbadliner caretspacerrrr r s2        z(TracebackException.format_exception_only)r%ccs|rV|jdk r*|jj|dEdHtVn,|jdk rV|j rV|jj|dEdHtV|jdk rfdV|jjEdH|jEdHdS)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. N)r%z#Traceback (most recent call last): ) rr_cause_messagerr_context_messagerr;r)rMr%rrr rMs    zTracebackException.format) r/r\r]r^rNrrrrSrrrrrrr rs9  -)N)NN)N)N)NNT)NT)NNT)NT)NNT)NNN)NN)NN) r^rkrirYr__all__r!rrrrrrr rrr-r+r r r r rrrrrrrr*rrrrrr sF          ?  z