/snap/core22/2437/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc289770644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc706740644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc170000644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /snap/core22/2437/usr/lib/python3.10/__pycache__/modulefinder.cpython-310.pyc (16166B)
o p̦iQ_@s dZddlZddlZddlZddlZddlZddlZddlZej dZ ej dZ ej dZ ej dZ e e fZejZdZdZdZd Zd Zd Zd ZiZd dZiZddZdddZGdddZGdddZddZedkrzeZ WdSe!ye"dYdSwdS)z3Find modules used by a script, using introspection.N LOAD_CONST IMPORT_NAME STORE_NAME STORE_GLOBALcCst|g|dSN)packagePathMap setdefaultappend) packagenamepathr#/usr/lib/python3.10/modulefinder.pyAddPackagePath&srcCs |t|<dSr )replacePackageMap)oldnamenewnamerrrReplacePackage1s rcCstjjtjj||}|durtdj|d|d|jtjjur+ddddt ffS|jtjj ur:ddddt ffS|j }|j |rOdtj|ddtffSt|jtjjrZt}nt|jtjjret}nt|jtjjrpt}nddddtffSt|}tj|d}|||d|ffS)zDAn importlib reimplementation of imp.find_module (for our purposes).NzNo module named {name!r})namerb) importlib machinery PathFinderinvalidate_caches find_spec ImportErrorformatloaderBuiltinImporter _C_BUILTINFrozenImporter _PY_FROZENorigin is_packageosrdirname_PKG_DIRECTORY isinstanceSourceFileLoader _PY_SOURCEExtensionFileLoader _C_EXTENSIONSourcelessFileLoader _PY_COMPILED _SEARCH_ERRORio open_codesplitext)rrspec file_pathkindfilesuffixrrr _find_module5s*   r>c@seZdZdddZddZdS)ModuleNcCs(||_||_||_d|_i|_i|_dSr )__name____file____path____code__ globalnames starimports)selfrr<rrrr__init__ds  zModule.__init__cCsLd|jf}|jdur|d|jf}|jdur |d|jf}|d}|S)Nz Module(%rz, %r))r@rArB)rFsrrr__repr__qs   zModule.__repr__)NN)r@ __module__ __qualname__rGrJrrrrr?bs  r?c@seZdZd6ddZddZddZd d Zd d Zd dZd7ddZ d8ddZ ddZ ddZ d9ddZ ddZddZddZd d!Zd8d"d#Zd$d%Zd&d'Zd(d)Zd*d+Zd:d,d-Zd.d/Zd0d1Zd2d3Zd4d5ZdS); ModuleFinderNrcCsZ|durtj}||_i|_i|_||_d|_|dur|ng|_|dur%|ng|_g|_dS)Nr) sysrmodules badmodulesdebugindentexcludes replace_pathsprocessed_paths)rFrrQrSrTrrrrG|s zModuleFinder.__init__cGsZ||jkr+t|jD]}tdddq t|dd|D] }tt|ddqtdSdS)N  end)rQrangerRprintrepr)rFlevelstrargsiargrrrmsgs   zModuleFinder.msgcGs0|d}||jkr|jd|_|j|dSdSNrrrQrRrbrFr_r]rrrmsgin   zModuleFinder.msgincGs0|d}||jkr|jd|_|j|dSdSrcrdrerrrmsgoutrgzModuleFinder.msgoutcCsX|dd|t|}ddtf}|d|||WddS1s%wYdS)Nr run_scriptrr__main__)rbr6r7r0 load_module)rFpathnamefpstuffrrrris   "zModuleFinder.run_scriptcCsjtj|\}}tj|\}}t|}|dtf}|||||WddS1s.wYdS)Nr)r+rsplitr8r6r7r0rk)rFrldirrextrmrnrrr load_files   "zModuleFinder.load_filerc Cs\|dd|||||j||d}|||\}}|||}|s#|S|jr,|||dS)Nr import_hookr])rbdetermine_parentfind_head_package load_tailrBensure_fromlist) rFrcallerfromlistr]parentqtailmrrrrss  zModuleFinder.import_hookcCsJ|dd|||r|dkr|dddS|j}|dkrb|jr$|d8}|dkr<|j|}||us3J|dd||S|d|krGtdd|dd| }|j|}|dd||S|jry|j|}||uspJ|dd||Sd|vr| d}|d|}|j|}|j|ksJ|dd||S|dddS) Nrurzdetermine_parent -> Nonerzdetermine_parent ->.zrelative importpath too deep) rfrhr@rBrOcountr"joinrorfind)rFryr]pnamer{r`rrrrusB           zModuleFinder.determine_parentcCs|dd||d|vr |d}|d|}||dd}n|}d}|r.d|j|f}n|}||||}|rF|dd||f||fS|rb|}d}||||}|rb|dd||f||fS|dd|td |) Nrrvrrr%s.%szfind_head_package ->"raise ImportError: No module namedNo module named )rffindr@ import_modulerhr")rFr{rr`headr}qnamer|rrrrvs.   zModuleFinder.find_head_packagecCs|dd|||}|rG|d}|dkrt|}|d|||dd}}d|j|f}||||}|sE|dd|td||s |dd ||S) Nrrwrrrrrrz load_tail ->)rfrlenr@rrhr")rFr|r}r~r`rmnamerrrrws   zModuleFinder.load_tailcCs|dd||||D]2}|dkr"|s!||}|r!|||dq t||s=d|j|f}||||}|s=td|q dS)Nrrx*rrr)rbfind_all_submodulesrxhasattrr@rr")rFr~rz recursivesuballsubnamesubmodrrrrxs   zModuleFinder.ensure_fromlistc Cs|jsdSi}g}|tjjdd7}|tjjdd7}|tjjdd7}|jD]F}zt|}WntyC| dd|Yq*w|D])}d}|D]}t |} || d|krd|d| }nqL|ro|dkro|||<qFq*| S)Nrzcan't list directoryrG) rBrrEXTENSION_SUFFIXESSOURCE_SUFFIXESBYTECODE_SUFFIXESr+listdirOSErrorrbrkeys) rFr~rOsuffixesrpnamesrmodsuffnrrrrs6    z ModuleFinder.find_all_submodulescCs|dd|||z|j|}Wn tyYn w|dd||S||jvr0|dddS|r?|jdur?|dddSz|||oG|j|\}}}Wnty_|dddYdSwz|||||}W|rp| n|rx| ww|rt ||||dd||S)Nrrzimport_module ->zimport_module -> None) rfrOKeyErrorrhrPrB find_moduler"rkclosesetattr)rFpartnamefqnamer{r~rmrlrnrrrr,sD        zModuleFinder.import_modulec Cs|\}}}|dd||o d||tkr#|||}|dd||S|tkr0t||d} n9|tkrgz|} tj | |iWnt yZ} z |ddt | |d} ~ wwt t| dd} nd} ||}||_| r|jr{|| } | |_|| ||dd||S)Nrrkrmzload_module ->execzraise ImportError: )rfr- load_packagerhr0compilereadr4r_bootstrap_external _classify_pycr"r^marshalloads memoryview add_modulerArTreplace_paths_in_coderC scan_code) rFrrmrl file_infor=modetyper~codataexcrrrrkLs8     zModuleFinder.load_modulecCs>||jvr i|j|<|rd|j||j<dSd|j|d<dS)Nr-)rPr@)rFrryrrr_add_badmoduleis  zModuleFinder._add_badmodulec CsJ||jvr |||dSz |j|||dWnCty9}z|ddt||||WYd}~dSd}~wtyZ}z|ddt||||WYd}~dSd}~ww|r|D]C}|d|}||jvrs|||q_z |j|||g|dWq_ty}z|ddt||||WYd}~q_d}~wwdSdS)Nrtrz ImportError:z SyntaxError:r)rPrrsr"rbr^ SyntaxError)rFrryrzr]rbrfullnamerrr_safe_import_hookqs:     zModuleFinder._safe_import_hookc cs|j}|j}|j}ddt|D}t|D]`\}\}}|tvr+d||ffVq|tkrx|dkrx||dd||ddkrItkrxnq|||dd} |||dd} | dkrmd| ||ffVn d| | ||ffVqqdS) NcSs"g|] \}}}|tkr||fqSr) EXTENDED_ARG).0_oprarrr sz-ModuleFinder.scan_opcodes..storerrrabsolute_importrelative_import) co_codeco_names co_constsdis_unpack_opargs enumerate STORE_OPSrr) rFrcoderconstsopargsr`ropargr]rzrrr scan_opcodess&0zModuleFinder.scan_opcodescCs||j}|j}||D]\}}|dkr|\}d|j|<q |dkr~|\}}d} |dur6d|vr/d} dd|D}|j|||dd| r}d} |jrQ|j|jd |} | dur[|j|} | durx|j| j|j | j | j durwd|j |<q d|j |<q |d kr|\} }}|r|j|||| dq |j || d} |j| jd|ddq t ||j D]} t| t|r|| |qdS) NrrrrrcSsg|]}|dkr|qS)rr)rfrrrrsz*ModuleFinder.scan_code..rtrr)rrrDrrBrOgetr@updaterErCru RuntimeErrorrr.rr)rFrr~rscannerwhatr_rrz have_starmmr]r{crrrrsP        zModuleFinder.scan_codecCs|dd||t|}|r|}||}||_|g|_|jt|g|_|d|j\}}}z|||||| dd||W|rJ| SS|rR| ww)NrrrGzload_package ->) rfrrrrArBr rrkrhr)rFrrlrr~rmbufrnrrrrs$    zModuleFinder.load_packagecCs*||jvr |j|St||j|<}|Sr )rOr?)rFrr~rrrrs  zModuleFinder.add_modulecCsn|dur |jd|}n|}||jvr|dd|t||dur2|tjvr/ddddtffS|j}t||S)Nrrzfind_module -> Excludedr) r@rSrhr"rNbuiltin_module_namesr&rr>)rFrrr{rrrrrs   zModuleFinder.find_modulecCsttddtddt|j}|D]!}|j|}|jr)tdddntdddtd||jp7d q|\}}|rattd |D]}t|j|}td |d d |qK|rttdddtd|D]}t|j|}td |d d |qrdSdS)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)NameFile)----rPrWrXr~z%-25srzMissing modules:?z imported fromz, z7Submodules that appear to be missing, but could also bez#global names in the parent package:N) r[sortedrOrrBrAany_missing_mayberPr)rFrkeyr~missingmaybermodsrrrreports4      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)rFrrrrr any_missing s zModuleFinder.any_missingcCsg}g}|jD]V}||jvrq|d}|dkr||q||dd}|d|}|j|}|durX||j|vrC||q||jvrIq|jrR||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. rrrN) rPrSrrrOrrDrEsort)rFrrrr`rpkgnamepkgrrrr(s0            zModuleFinder.any_missing_maybecCstj|j}}|jD]\}}||r!||t|d}nq |jrH||jvrH||kr9| dd||fn | dd|f|j |t |j }t t|D]}t||t|rg|||||<qS|jt||dS)Nrzco_filename %r changed to %rz co_filename %r remains unchanged)r co_filename)r+rnormpathrrT startswithrrQrUrhrlistrrZr.rrreplacetuple)rFr new_filenameoriginal_filenamerrrr`rrrrVs*   z"ModuleFinder.replace_paths_in_code)NrNN)NNr)r)rr )r@rKrLrGrbrfrhrirrrsrurvrwrxrrrkrrrrrrrrrrrrrrrrMzs4     #   1 " .rMc Csddl}z|tjddd\}}Wn|jy+}z t|WYd}~dSd}~wwd}d}g}g}|D]-\}} |dkrB|d}|dkrHd}|dkrT|| tj}|dkrZd}|dkrc|| q6|sid } n|d} tj dd} tj | | d<|| } |dkrtd | D] } td t | qt | ||} |ddD]+}|dkrd}q|r|d dd kr| |dd ddgq| |q| |q| | | | S)Nrrzdmp:qx:z-dz-mz-pz-qz-xzhello.pyzpath:rVz.*r)getoptrNargverrorr[ror+pathseprrr,r\rMrsrrrir)roptsr_rbrQdomodsaddpathexcludeoascriptritemmfrarrrtestns^      rrjz [interrupted]r )#__doc__rimportlib._bootstrap_externalrimportlib.machineryrr+r6rNopmaprrrrrrr5r0r4r2r-r&r(r rrrr>r?rMrr@rKeyboardInterruptr[rrrrsN     -w;