/snap/core20/2866/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.pyc413420644editdlrm
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.pyc134590644editdlrm
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/2866/usr/lib/python3.8/__pycache__/modulefinder.cpython-38.pyc (16115B)
U ʦin_@sdZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ej dZ ej dZ ej dZej dZeefZejZdZdZdZd Zd Zd Zd ZiZd dZiZddZdddZGdddZGdddZddZ e!dkrz e Z"Wne#k re$dYnXdS)z3Find modules used by a script, using introspection.N LOAD_CONST IMPORT_NAME STORE_NAME STORE_GLOBALcCst|g|dSN)packagePathMap setdefaultappend)Z packagenamepathr"/usr/lib/python3.8/modulefinder.pyAddPackagePath(srcCs |t|<dSr )replacePackageMap)ZoldnamenewnamerrrReplacePackage3srcCstjjtjj||}|dkr8tdj|d|d|jtjjkrVddddt ffS|jtjj krtddddt ffS|j }|j |rdtj|ddtffSt|jtjjrt}n)rBsrrr__repr__ss   zModule.__repr__)NN)r< __module__ __qualname__rCrFrrrrr;ds r;c@seZdZd6ddZddZddZd d Zd d Zd dZd7ddZ d8ddZ ddZ ddZ d9ddZ ddZddZddZd d!Zd:d"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd;d,d-Zd.d/Zd0d1Zd2d3Zd4d5ZdS)< ModuleFinderNrcCsZ|dkrtj}||_i|_i|_||_d|_|dk r8|ng|_|dk rJ|ng|_g|_dS)Nr) sysrmodules badmodulesdebugindentexcludes replace_pathsprocessed_paths)rBrrMrOrPrrrrC~szModuleFinder.__init__cGsV||jkrRt|jD]}tdddqt|dd|D]}tt|ddq6tdS)N  end)rMrangerNprintrepr)rBlevelstrargsiargrrrmsgs  zModuleFinder.msgcGs,|d}||jkr(|jd|_|j|dSNrrrMrNr^rBr[rYrrrmsgins  zModuleFinder.msgincGs,|d}||jkr(|jd|_|j|dSr_r`rarrrmsgouts  zModuleFinder.msgoutc CsB|dd|t| }ddtf}|d|||W5QRXdS)Nr run_scriptrr__main__)r^r4r5r. load_module)rBpathnamefpstuffrrrrds  zModuleFinder.run_scriptc CsTtj|\}}tj|\}}t| }|dtf}|||||W5QRXdS)Nr)r)rsplitr6r4r5r.rf)rBrgdirrZextrhrirrr load_files   zModuleFinder.load_filerc Cs\|dd|||||j||d}|||\}}|||}|sF|S|jrX|||dS)Nr import_hookrY)r^determine_parentfind_head_package load_tailr>ensure_fromlist) rBrcallerfromlistrYparentqtailmrrrrms  zModuleFinder.import_hookcCsN|dd|||r|dkr,|dddS|j}|dkr|jrH|d8}|dkrx|j|}||ksft|dd||S|d|krtdd| dd| }|j|}|dd||S|jr|j|}||kst|dd||Sd|kr>| d}|d|}|j|}|j|ks,t|dd||S|dddS) Nrorzdetermine_parent -> Nonerzdetermine_parent ->.zrelative importpath too deep) rbrcr<r>rKAssertionErrorcountr joinrjrfind)rBrsrYZpnamerur\rrrrosB            zModuleFinder.determine_parentcCs|dd||d|kr@|d}|d|}||dd}n|}d}|r\d|j|f}n|}||||}|r|dd||f||fS|r|}d}||||}|r|dd||f||fS|dd|td |dS) Nryrprzrr%s.%szfind_head_package ->"raise ImportError: No module namedNo module named )rbfindr< import_modulercr )rBrurr\headrwZqnamervrrrrps.  zModuleFinder.find_head_packagecCs|dd|||}|r|d}|dkr2t|}|d|||dd}}d|j|f}||||}|s|dd|td|q|dd ||S) Nryrqrzrrrrrz load_tail ->)rbrlenr<rrcr )rBrvrwrxr\rZmnamerrrrqs zModuleFinder.load_tailcCs|dd||||D]d}|dkrD|sz||}|rz|||dqt||sd|j|f}||||}|std|qdS)Nryrr*rrr)r^find_all_submodulesrrhasattrr<rr )rBrxrt recursivesuballsubnameZsubmodrrrrrs  zModuleFinder.ensure_fromlistc Cs|js dSi}g}|tjjdd7}|tjjdd7}|tjjdd7}|jD]}zt|}Wn&tk r| dd|YqTYnX|D]R}d}|D]0}t |} || d|kr|d| }qq|r|dkr|||<qqT| S)Nrzcan't list directoryrC) r>rrEXTENSION_SUFFIXESSOURCE_SUFFIXESBYTECODE_SUFFIXESr)listdirOSErrorr^rkeys) rBrxrKsuffixesrknamesrmodZsuffnrrrrs.    z ModuleFinder.find_all_submodulescCs |dd|||z|j|}Wntk r4YnX|dd||S||jkrb|dddS|r|jdkr|dddSz|||o|j|\}}}Wn$tk r|dddYdSXz| ||||}W5|r|X|rt ||||dd||S)Nrrzimport_module ->zimport_module -> None) rbrKKeyErrorrcrLr> find_moduler closerfsetattr)rBZpartnamefqnamerurxrhrgrirrrr.s:     zModuleFinder.import_modulec Cs(|\}}}|dd||od||tkrF|||}|dd||S|tkr`t||d} n||tkrz|} tj | |iWn:t k r} z|ddt | |W5d} ~ XYnXt t| dd} nd} ||}||_| r|jr|| } | |_|| ||dd||S)Nrrfrhzload_module ->execzraise ImportError: )rbr+ load_packagercr.compilereadr2r_bootstrap_external _classify_pycr rZmarshalloads memoryview add_moduler=rPreplace_paths_in_coder? scan_code) rBrrhrg file_infor9modetyperxcodataexcrrrrfNs4     zModuleFinder.load_modulecCs<||jkri|j|<|r*d|j||j<nd|j|d<dS)Nr-)rLr<)rBrrsrrr_add_badmoduleks   zModuleFinder._add_badmodulec CsB||jkr|||dSz|j|||dWn~tk rn}z"|ddt||||W5d}~XYntk r}z"|ddt||||W5d}~XYnX|r>|D]}|d|}||jkr|||qz|j|||g|dWqtk r:}z"|ddt||||W5d}~XYqXqdS)Nrnrz ImportError:z SyntaxError:rz)rLrrmr r^rZ SyntaxError)rBrrsrtrYr^rfullnamerrr_safe_import_hookss,     zModuleFinder._safe_import_hookc cs|j}|j}|j}ddt|D}t|D]\}\}}|tkrTd||ffVq.|tkr.|dkr.||dd||ddkrtkr.nq.|||dd} |||dd} | dkrd| ||ffVq.d| | ||ffVq.q.dS) NcSs"g|]\}}}|tkr||fqSr) EXTENDED_ARG).0_opr]rrr sz-ModuleFinder.scan_opcodes..storerrrabsolute_importrelative_import) co_codeco_names co_constsdisZ_unpack_opargs enumerate STORE_OPSrr) rBrcoderconstsZopargsr\rZopargrYrtrrr scan_opcodess( zModuleFinder.scan_opcodescCs|j}|j}||D]F\}}|dkr8|\}d|j|<q|dkr|\}}d} |dk rpd|krbd} dd|D}|j|||dd| r\d} |jr|j|jd |} | dkr|j|} | dk r|j| j|j | j | j dkrd|j |<n d|j |<q|d krT|\} }}|r0|j|||| dn"|j || d} |j| jd|ddqt |q|j D]"} t| t|rd|| |qddS) NrrrrrcSsg|]}|dkr|qS)rr)rfrrrrsz*ModuleFinder.scan_code..rnrzr)rrr@rr>rKgetr<updaterAr?ro RuntimeErrorrr,rr)rBrrxrscannerZwhatr[rrtZ have_starZmmrYrucrrrrsH          zModuleFinder.scan_codecCs|dd||t|}|r"|}||}||_|g|_|jt|g|_|d|j\}}}z&| ||||| dd||WS|r|XdS)NrrrCzload_package ->) rbrrrr=r>r rrrfrc)rBrrgrrxrhZbufrirrrrs  zModuleFinder.load_packagecCs*||jkr|j|St||j|<}|Sr )rKr;)rBrrxrrrrs  zModuleFinder.add_modulecCsn|dk r|jd|}n|}||jkr<|dd|t||dkrd|tjkr^ddddtffS|j}t||S)Nrzrzfind_module -> Excludedr) r<rOrcr rJbuiltin_module_namesr$rr:)rBrrrurrrrrs  zModuleFinder.find_modulecCsttddtddt|j}|D]B}|j|}|jrRtdddn tdddtd||jpnd q0|\}}|rttd |D]*}t|j|}td |d d |q|rttdddtd|D]*}t|j|}td |d d |qdS)zPrint a report to stdout, listing the found modules with their paths, as well as modules that are missing, or seem to be missing. z %-25s %s)NameZFile)----rPrSrTrxz%-25srzMissing modules:?z imported fromz, z7Submodules that appear to be missing, but could also bez#global names in the parent package:N) rWsortedrKrr>r=any_missing_mayberLr})rBrkeyrxmissingmayberZmodsrrrreports0      zModuleFinder.reportcCs|\}}||S)zReturn a list of modules that appear to be missing. Use any_missing_maybe() if you want to know which modules are certain to be missing, and which *may* be missing. )r)rBrrrrr any_missing"s zModuleFinder.any_missingcCsg}g}|jD]}||jkrq|d}|dkr<||q||dd}|d|}|j|}|dk r||j|kr||q||jkrq|jr||q||q||q||||fS)aReturn two lists, one with modules that are certainly missing and one with modules that *may* be missing. The latter names could either be submodules *or* just global names in the package. The reason it can't always be determined is that it's impossible to tell which names are imported when "from module import *" is done with an extension module, short of actually importing it. rzrrN) rLrOr~rrKrr@rAsort)rBrrrr\rZpkgnameZpkgrrrr*s0            zModuleFinder.any_missing_maybecCstj|j}}|jD]*\}}||r||t|d}qDq|jr||jkr||krr| dd||fn| dd|f|j |t |j }t t|D](}t||t|r|||||<q|jt||dS)Nrzco_filename %r changed to %rz co_filename %r remains unchanged)r co_filename)r)rnormpathrrP startswithrrMrQrcrlistrrVr,rrreplacetuple)rBrZ new_filenameZoriginal_filenamerrrr\rrrrXs&   z"ModuleFinder.replace_paths_in_code)NrNN)NNr)r)r)r)N)r<rGrHrCr^rbrcrdrlrmrorprqrrrrrfrrrrrrrrrrrrrrrrI|s2   #   1 ".rIc Csddl}z|tjddd\}}Wn2|jk rX}zt|WYdSd}~XYnXd}d}g}g}|D]Z\}} |dkr|d}|dkrd}|dkr|| tj}|dkrd}|dkrn|| qn|sd } n|d} tj dd} tj | | d<|| } |dkr.td | D]} td t | qt | ||} |ddD]`}|dkr\d}qF|r|d dd kr| |dd ddgn | |n | |qF| | | | S)Nrrzdmp:qx:z-dz-mz-pz-qz-xzhello.pyzpath:rRz.*r)getoptrJargverrorrWrjr)pathseprrr*rXrIrmrlrdr)rZoptsr[r^rMZdomodsZaddpathZexcludeoaZscriptritemmfr]rrrtestpsX       rrez [interrupted])N)%__doc__rimportlib._bootstrap_externalrimportlib.machineryrr)r4rJtypeswarningsZopmaprrrrrrr3r.r2r0r+r$r&r rrrr:r;rIrr<rKeyboardInterruptrWrrrrsL     -w;