/snap/core18/2999/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/2999/usr/lib/python3.6/__pycache__/bdb.cpython-36.pyc (17033B)
3 Nqi\@sdZddlZddlZddlZddlmZmZmZdddgZeeBeBZ Gddde Z GdddZ d d Z Gd ddZd d ZddZGddde ZddZddZddZdS)zDebugger basicsN) CO_GENERATOR CO_COROUTINECO_ASYNC_GENERATORBdbQuitBdb Breakpointc@seZdZdZdS)rz Exception to give up completely.N)__name__ __module__ __qualname____doc__r r /usr/lib/python3.6/bdb.pyr sc@speZdZdZdZddZddZddZd d Zd d Zd dZ ddZ ddZ ddZ ddZ ddZddZddZddZdd Zd!d"Zd#d$Zd[d&d'Zd\d(d)Zd*d+Zd,d-Zd.d/Zd]d0d1Zd2d3Zd4d5Zd^d7d8Zd9d:Zd;d<Zd=d>Z d?d@Z!dAdBZ"dCdDZ#dEdFZ$dGdHZ%dIdJZ&dKdLZ'dMdNZ(d_dPdQZ)d`dRdSZ*dadTdUZ+dVdWZ,dXdYZ-dS)brzGeneric Python debugger base class. This class takes care of details of the trace facility; a derived class should implement user interaction. The standard debugger class (pdb.Pdb) is an example. NcCs(|r t|nd|_i|_i|_d|_dS)N)setskipbreaksfncacheframe_returning)selfrr r r __init__sz Bdb.__init__cCsR|d|dddkr|S|jj|}|sNtjj|}tjj|}||j|<|S)N<>)rgetospathabspathnormcase)rfilenamecanonicr r r rs    z Bdb.canoniccCs&ddl}|jd|_|jdddS)Nr) linecache checkcachebotframe _set_stopinfo)rr r r r reset)sz Bdb.resetcCs|jr dS|dkr|j|S|dkr0|j||S|dkrD|j||S|dkrX|j||S|dkrf|jS|dkrt|jS|dkr|jStdt||jS) NlineZcallreturnZ exceptionZc_callZ c_exceptionZc_returnz*bdb.Bdb.dispatch: unknown debugging event:)quitting dispatch_line dispatch_calldispatch_returndispatch_exceptiontrace_dispatchprintrepr)rframeZeventargr r r r,/s$    zBdb.trace_dispatchcCs.|j|s|j|r(|j||jr(t|jS)N) stop_here break_here user_liner'rr,)rr/r r r r(Cs  zBdb.dispatch_linecCsd|jdkr|j|_|jS|j|p*|j|s0dS|jrH|jjt@rH|jS|j |||j r^t |jS)N) r"f_backr,r1break_anywhere stopframef_codeco_flagsGENERATOR_AND_COROUTINE_FLAGS user_callr'r)rr/r0r r r r)Is  zBdb.dispatch_callc Cs||j|s||jkrv|jr,|jjt@r,|jSz||_|j||Wdd|_X|j rVt |j|krv|j dkrv|j dd|jS)Nrr) r1 returnframer6r7r8r9r,r user_returnr'r stoplinenor#)rr/r0r r r r*Ys zBdb.dispatch_returncCs|j|rF|jjt@o,|dtko,|ddks|j|||jrtnD|jr||jk r|jjjt@r|dtt fkr|j|||jrt|j S)Nr) r1r7r8r9 StopIterationuser_exceptionr'rr6 GeneratorExitr,)rr/r0r r r r+is    zBdb.dispatch_exceptioncCs$x|jD]}tj||rdSqWdS)NTF)rfnmatch)rZ module_namepatternr r r is_skipped_modules  zBdb.is_skipped_modulecCsN|jr|j|jjdrdS||jkr@|jdkr4dS|j|jkS|jsJdSdS)NrFrTr)rrD f_globalsrr6r=f_lineno)rr/r r r r1s   z Bdb.stop_herecCs|j|jj}||jkrdS|j}||j|krJ|jj}||j|krJdSt|||\}}|r|j|_|r|j r|j t |jdSdSdS)NFT) rr7 co_filenamerrFco_firstlineno effectivenumberZ currentbp temporarydo_clearstr)rr/rlinenobpflagr r r r2s  zBdb.break_herecCs tddS)Nz)subclass of bdb must implement do_clear())NotImplementedError)rr0r r r rLsz Bdb.do_clearcCs|j|jj|jkS)N)rr7rGr)rr/r r r r5szBdb.break_anywherecCsdS)znThis method is called when there is the remote possibility that we ever need to stop in this function.Nr )rr/Z argument_listr r r r:sz Bdb.user_callcCsdS)z9This method is called when we stop or break at this line.Nr )rr/r r r r3sz Bdb.user_linecCsdS)z5This method is called when a return trap is set here.Nr )rr/Z return_valuer r r r<szBdb.user_returncCsdS)zmThis method is called if an exception occurs, but only if we are to stop at or just below this level.Nr )rr/exc_infor r r r@szBdb.user_exceptionrcCs||_||_d|_||_dS)NF)r6r;r'r=)rr6r;r=r r r r#szBdb._set_stopinfocCs$|dkr|jd}|j|||dS)zxStop when the line with the line no greater than the current one is reached or when returning from current frameNr)rFr#)rr/rNr r r set_untils z Bdb.set_untilcCs2|jr"|jj}|r"|j r"|j|_|jdddS)zStop after one line of code.N)rr4f_tracer,r#)rZ caller_framer r r set_steps  z Bdb.set_stepcCs|j|ddS)z2Stop on the next line in or below the given frame.N)r#)rr/r r r set_nextsz Bdb.set_nextcCs.|jjt@r|j|ddn|j|j|dS)z)Stop when returning from the given frame.Nrr)r7r8r9r#r4)rr/r r r set_returns zBdb.set_returncCsP|dkrtjj}|jx|r6|j|_||_|j}qW|jtj|jdS)zpStart debugging from `frame`. If frame is not specified, debugging starts from caller's frame. N) sys _getframer4r$r,rTr"rUsettrace)rr/r r r set_traces  z Bdb.set_tracecCsL|j|jdd|jsHtjdtjj}x|rF||jk rF|`|j}q,WdS)Nrr)r#r"rrXrZrYr4rT)rr/r r r set_continues  zBdb.set_continuecCs"|j|_d|_d|_tjddS)NT)r"r6r;r'rXrZ)rr r r set_quit sz Bdb.set_quitFc Csb|j|}ddl}|j||}|s.d||fS|jj|g}||krN|j|t|||||} dS)NrzLine %s:%d does not exist)rr getliner setdefaultappendr) rrrNrKcondfuncnamer r%listrOr r r set_breaks    z Bdb.set_breakcCs4||ftjkr|j|j||j|s0|j|=dS)N)rbplistrremove)rrrNr r r _prune_breaks$s zBdb._prune_breakscCsn|j|}||jkrd|S||j|kr6d||fSx&tj||fddD] }|jqNW|j||dS)NzThere are no breakpoints in %szThere is no breakpoint at %s:%d)rrrredeleteMerg)rrrNrOr r r clear_break*s    zBdb.clear_breakcCsPy|j|}Wn$tk r2}zt|Sd}~XnX|j|j|j|jdS)N)get_bpbynumber ValueErrorrMrhrgfiler%)rr0rOerrr r r clear_bpbynumber6s zBdb.clear_bpbynumbercCs`|j|}||jkrd|Sx6|j|D](}tj||f}x|D] }|jq@Wq(W|j|=dS)NzThere are no breakpoints in %s)rrrrerh)rrr%ZblistrOr r r clear_all_file_breaks>s   zBdb.clear_all_file_breakscCs0|js dSxtjD]}|r|jqWi|_dS)NzThere are no breakpoints)rr bpbynumberrh)rrOr r r clear_all_breaksHs   zBdb.clear_all_breakscCs|s tdy t|}Wn tk r8td|YnXytj|}Wn tk rhtd|YnX|dkr~td||S)NzBreakpoint number expectedz Non-numeric breakpoint number %sz!Breakpoint number %d out of rangezBreakpoint %d already deleted)rkintrrp IndexError)rr0rJrOr r r rjPs  zBdb.get_bpbynumbercCs"|j|}||jko ||j|kS)N)rr)rrrNr r r get_break_s  z Bdb.get_breakcCs4|j|}||jkr0||j|kr0tj||fp2gS)N)rrrre)rrrNr r r get_breaksds  zBdb.get_breakscCs&|j|}||jkr|j|SgSdS)N)rr)rrr r r get_file_breaksjs   zBdb.get_file_breakscCs|jS)N)r)rr r r get_all_breaksqszBdb.get_all_breakscCsg}|r|j|kr|j}x.|dk rF|j||jf||jkr>P|j}qW|jtdt|d}x$|dk r|j|j|j f|j}qdW|dkrtdt|d}||fS)Nrr) tb_frametb_nextr`rFr"r4reversemaxlen tb_lineno)rftstackir r r get_stackws      z Bdb.get_stack: c Csddl}ddl}|\}}|j|jj}d||f}|jjrH||jj7}n|d7}d|jkrf|jd} nd} | r~||j| 7}n|d7}d|jkr|jd} |d7}||j| 7}|j|||j } | r||| j 7}|S)Nrz%s(%r)zZ__args__z()Z __return__z->) r reprlibrr7rGco_namef_localsr.r^rEstrip) rZ frame_linenoZlprefixr rr/rNrsargsrvr%r r r format_stack_entrys*     zBdb.format_stack_entrycCs|dkrddl}|j}|dkr"|}|jt|tr@t|dd}tj|jz*yt |||Wnt k rrYnXWdd|_ tjdXdS)NrzexecT) __main____dict__r$ isinstancerMcompilerXrZr,rrr')rcmdglobalslocalsrr r r runs    zBdb.runcCst|dkrddl}|j}|dkr"|}|jtj|jz&y t|||Stk rXYnXWdd|_tjdXdS)NrT) rrr$rXrZr,evalrr')rexprrrrr r r runevals   z Bdb.runevalcCs|j|||dS)N)r)rrrrr r r runctxsz Bdb.runctxcOsX|jtj|jd}z(y|||}Wntk r<YnXWdd|_tjdX|S)NT)r$rXrZr,rr')rfuncrkwdsZresr r r runcalls   z Bdb.runcall)N)r)N)N)FNN)r)NN)NN).rr r r rrr$r,r(r)r*r+rDr1r2rLr5r:r3r<r@r#rSrUrVrWr[r\r]rdrgrirnrorqrjrtrurvrwrrrrrrr r r r rsX             cCstjdS)N)rr[r r r r r[sr[c@sZeZdZdZdZiZdgZdddZddZd d Z d d Z dd dZ ddZ ddZ dS)raBreakpoint class. Implements temporary breakpoints, ignore counts, disabling and (re)-enabling, and conditionals. Breakpoints are indexed by number through bpbynumber and by the file,line tuple using bplist. The former points to a single instance of class Breakpoint. The latter points to a list of such instances since there may be more than one breakpoint per line. rNFcCs||_d|_||_||_||_||_d|_d|_d|_t j |_ t j d7_ |j j |||f|jkr||j||fj |n|g|j||f<dS)NTrr)rbfunc_first_executable_linerlr%rKraenabledignorehitsrnextrJrpr`re)rrlr%rKrarbr r r rs zBreakpoint.__init__cCs>|j|jf}d|j|j<|j|j||j|s:|j|=dS)N)rlr%rprJrerf)rindexr r r rh s    zBreakpoint.deleteMecCs d|_dS)NT)r)rr r r enableszBreakpoint.enablecCs d|_dS)NF)r)rr r r disableszBreakpoint.disablecCs"|dkrtj}t|j|ddS)N)rl)rXstdoutr-bpformat)routr r r bpprintszBreakpoint.bpprintcCs|jr d}nd}|jr |d}n|d}d|j||j|jf}|jrT|d|jf7}|jrj|d|jf7}|jr|jdkrd }nd }|d |j|f7}|S) Nzdel zkeep zyes zno z%-4dbreakpoint %s at %s:%dz stop only if %sz ignore next %d hitsrrz" breakpoint already hit %d time%s)rKrrJrlr%rarr)rZdispZretZssr r r rs$  zBreakpoint.bpformatcCsd|j|j|jfS)Nzbreakpoint %s at %s:%s)rJrlr%)rr r r __str__6szBreakpoint.__str__)FNN)N)rr r r rrerprrhrrrrrr r r r rs   cCsN|js|j|jkrdSdS|jj|jkr,dS|js:|j|_|j|jkrJdSdS)z;Check whether we should break here because of `b.funcname`.FT)rbr%rFr7rr)br/r r r checkfuncname;s  rc Cstj||f}x|D]}|js qt||s,q|jd7_|jsf|jdkr\|jd8_qq|dfSqy)r-)ar r r rs rcCst}|jddS)Nzimport bdb; bdb.foo(10))rr)rr r r testsr)r rBrXrinspectrrr__all__r9 Exceptionrrr[rrrIrrrrr r r r s&  OZ0