/opt/alt/python-internal/lib64/python3.11/importlib/__pycache__
NameSizeModeActions
abc.cpython-311.opt-1.pyc145130644editdlrm
abc.cpython-311.opt-2.pyc95990644editdlrm
abc.cpython-311.pyc145130644editdlrm
machinery.cpython-311.opt-1.pyc13220644editdlrm
machinery.cpython-311.opt-2.pyc11880644editdlrm
machinery.cpython-311.pyc13220644editdlrm
readers.cpython-311.opt-1.pyc5510644editdlrm
readers.cpython-311.opt-2.pyc3870644editdlrm
readers.cpython-311.pyc5510644editdlrm
simple.cpython-311.opt-1.pyc5620644editdlrm
simple.cpython-311.opt-2.pyc3990644editdlrm
simple.cpython-311.pyc5620644editdlrm
util.cpython-311.opt-1.pyc152320644editdlrm
util.cpython-311.opt-2.pyc124280644editdlrm
util.cpython-311.pyc152320644editdlrm
_abc.cpython-311.opt-1.pyc23650644editdlrm
_abc.cpython-311.opt-2.pyc14380644editdlrm
_abc.cpython-311.pyc23650644editdlrm
_bootstrap.cpython-311.opt-1.pyc562620644editdlrm
_bootstrap.cpython-311.opt-2.pyc497690644editdlrm
_bootstrap.cpython-311.pyc578220644editdlrm
_bootstrap_external.cpython-311.opt-1.pyc718330644editdlrm
_bootstrap_external.cpython-311.opt-2.pyc613600644editdlrm
_bootstrap_external.cpython-311.pyc723320644editdlrm
__init__.cpython-311.opt-1.pyc66820644editdlrm
__init__.cpython-311.opt-2.pyc60300644editdlrm
__init__.cpython-311.pyc66820644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/importlib/__pycache__/util.cpython-311.pyc (15232B)
!A?h1PdZddlmZddlmZddlmZddlmZddlmZddlm Z ddlm Z dd lm Z dd lm Z dd lm Z dd lmZd dlmZd dlZd dlZd dlZd dlZd dlZd dlZdZdZddZddZedZdZdZdZGddejZ GddeZ!dS)z-Utility code for constructing importers, etc.)Loader)module_from_spec) _resolve_name)spec_from_loader) _find_spec) MAGIC_NUMBER)_RAW_MAGIC_NUMBER)cache_from_source) decode_source)source_from_cache)spec_from_file_location)contextmanagerNc6tjt|S)zBReturn the hash of *source_bytes* as used in hash-based pyc files.)_imp source_hashr ) source_bytess ;/opt/alt/python-internal/lib64/python3.11/importlib/util.pyrrs  -| < <<c|ds|S|s tdt|dd}|D]}|dkrn|dz }t||d||S)z2Resolve a relative module name to an absolute one..zno package specified for z% (required for relative module names)rrN) startswith ImportErrorreprr)namepackagelevel characters r resolve_namers ??3  B BAd4jjAAABB B E    E   effw 6 66rc(|tjvrt||Stj|}|dS |j}|"t d||S#t $r$t d|dwxYw)aReturn the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a suitable spec with the value of 'path' given to the finders. None is returned if no spec could be found. Dotted names do not have their parent packages implicitly imported. You will most likely need to explicitly import all parent packages in the proper order for a submodule to get the correct spec. N{}.__spec__ is None{}.__spec__ is not set)sysmodulesr__spec__ ValueErrorformatAttributeError)rpathmodulespecs r_find_spec_from_pathr,+s 3;$%%%T" >4 ?D| !6!=!=d!C!CDDDK  N N N5<|drt||n|}|tjvrt|dd}|rEt |dg} |j}n,#t$r}td|d|||d}~wwxYwd}t||Stj|}|dS |j }|"td ||S#t$r$td |dwxYw) aReturn the spec for the specified module. First, sys.modules is checked to see if the module was already imported. If so, then sys.modules[name].__spec__ is returned. If that happens to be set to None, then ValueError is raised. If the module is not in sys.modules, then sys.meta_path is searched for a suitable spec with the value of 'path' given to the finders. None is returned if no spec could be found. If the name is for submodule (contains a dot), the parent module is automatically imported. The name and package arguments work the same as importlib.import_module(). In other words, relative module names (with leading dots) work. rr__path__)fromlistz __path__ attribute not found on z while trying to find )rNr!r") rrr#r$ rpartition __import__r.r(ModuleNotFoundErrorrr%r&r') rrfullname parent_nameparent parent_pather*r+s r find_specr8Js}"/3ooc.B.BL|D'***Hs{""))#..q1   zlCCCF P$o ! P P P)9{99,499?GIIINOP P K(K000X& >4 ?D| !6!=!=d!C!CDDDK  N N N5<.set_package_wrappers L(Q 8 8 8 8d%f%% 6=$ / / 7!'F 6:.. K%+%7%B%B3%G%G%J" r functoolswraps)rPrQs` r set_packagerUs; _S      rcFtjfd}|S)zNSet __loader__ on the returned module. This function is deprecated. ctjdtd|g|Ri|}t|dd||_|S)NrCrDrE __loader__)rHrIrJrKrX)selfrNrOr*rPs rset_loader_wrapperz&set_loader..set_loader_wrappersg L(Q 8 8 8 8T+D+++F++ 6< . . 6 $F  rrR)rPrZs` r set_loaderr[s; _S rc~tjdtdtjfd}|S)a*Decorator to handle selecting the proper module for loaders. The decorated function is passed the module to use instead of the module name. The module passed in to the function is either from sys.modules if it already exists or is a new module. If the module is new, then __name__ is set the first argument to the method, __loader__ is set to self, and __package__ is set accordingly (if self.is_package() is defined) will be set before it is passed to the decorated function (if self.is_package() does not work for the module it will be set post-load). If an exception is raised and the decorator created the module it is subsequently removed from sys.modules. The decorator assumes that the decorated function takes the module name as the second argument. rCrDrEc.t|5}||_ ||}|r||_n8|dd|_n#t t f$rYnwxYw||g|Ri|cdddS#1swxYwYdS)Nrr)r@rX is_packagerGr0rr()rYr3rNrOr*r^rPs rmodule_for_loader_wrapperz4module_for_loader..module_for_loader_wrappers  X & & 6& $F  E!__X66 E)1F&&)1)<)>+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2.2 \*!224DD !) **5 $ " "+//"3"333JC*,,-2 c**IcN++r*S//B/BBB-2 c*++D111!CK//$xx2ck-&@#A#AAA(*1m*1*1*1222  ...!&!1W+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2+ 2ZtT"""sAF#>DF##F'*F'cP||t||dS)z/Trigger the load and then perform the deletion.N)ridelattr)rYrrs r __delattr__z_LazyModule.__delattr__s. d###drN)rL __module__ __qualname____doc__rir{rrrbrbs9UU1#1#1#frrbcPeZdZdZedZedZdZdZ dZ dS) LazyLoaderzKA loader that creates a module which defers loading until attribute access.cDt|dstddS)Nrnz loader must define exec_module())rM TypeError)rms r__check_eager_loaderzLazyLoader.__check_eager_loader"s0v}-- @>?? ? @ @rc<fdS)z>Construct a callable which returns the eager loader made lazy.c&|i|SNr)rNrOclsrms rz$LazyLoader.factory..+s ss664+B6+B+B'C'Cr)_LazyLoader__check_eager_loader)rrms``rfactoryzLazyLoader.factory's,   (((CCCCCCrc>||||_dSr)rrm)rYrms r__init__zLazyLoader.__init__-s! !!&))) rc6|j|Sr)rm create_module)rYr+s rrzLazyLoader.create_module1s{((...rc|j|j_|j|_i}|j|d<|j|d<t j|d<d|d<||j_t|_dS)zMake the module load lazily.rgrerdFrfN) rmr%rXrgcopyre threadingRLockrjrb)rYr*rjs rrnzLazyLoader.exec_module4sx!% K  #)?#7#7#9#9 Z $*$4 [!(00 V%* \"'3$&rN) rLr|r}r~ staticmethodr classmethodrrrrnrrrrrsUU@@\@DD[D ///'''''rrr)"r~_abcr _bootstraprrrr_bootstrap_externalrr r r r r contextlibrrrSr#rrprHrrr,r8r@rUr[r`rqrbrrrrrs33((((((%%%%%%((((((""""""------222222222222......222222888888%%%%%%   === 7 7 7>****Z(((2($%%%%%%P<<<<<%"<<<~$'$'$'$'$'$'$'$'$'$'r