e+SrSSKJr SSKJr SSKJr SSKJr SSKJr SSKJ r SSKJ r SS KJ r SS KJ r SS KJ r SS KJr S SKrS SKrS SKrSrSrSSjrSSjr"SS5r"SS\R.5r"SS\5rg)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_locationNc8[R"[U5$)zBReturn the hash of *source_bytes* as used in hash-based pyc files.)_imp source_hashr ) source_bytess 4/opt/imh/python3.13/lib/python3.13/importlib/util.pyrrs   -| <<cURS5(dU$U(d[S[U5S35eSnUHnUS:wa O US- nM [XSX5$)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_namersv ??3   5d4j\BAAB B E      fw 66rcU[R;a [X5$[RUnUcgURnUc[ US35eU$![ a [ US35Sef=f)a_Return 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__ ValueErrorAttributeError)rpathmodulespecs r_find_spec_from_pathr*'s 3;;$%%T" > ??D| D6):!;<<K  Fv%9:; E Fs AA1cURS5(a [X5OUnU[R;aAUR S5SnU(a[ US/S9nUR nOSn[X%5$[RUnUcgURnUc[US 35eU$![an[SU<SU<3US9UeSnAff=f![a [US 35Sef=f) 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%) rrfullname parent_nameparent parent_pather(r)s r find_specr6Fs"/3ooc.B.B|D*Hs{{"))#.q1  zlCF P$oo K(00X& > ??D| D6):!;<<K%" P)6{oF,,4<9?GINOP P Fv%9:; E Fs$ B0 C0 C:C  CC/c:\rSrSrSrSrSrSr\S5r Sr g) +_incompatible_extension_module_restrictionswaA context manager that can temporarily skip the compatibility check. NOTE: This function is meant to accommodate an unusual case; one which is likely to eventually go away. There's is a pretty good chance this is not what you were looking for. WARNING: Using this function to disable the check can lead to unexpected behavior and even crashes. It should only be used during extension module development. If "disable_check" is True then the compatibility check will not happen while the context manager is active. Otherwise the check *will* happen. Normally, extensions that do not support multiple interpreters may not be imported in a subinterpreter. That implies modules that do not implement multi-phase init or that explicitly of out. Likewise for modules import in a subinterpreter with its own GIL when the extension does not support a per-interpreter GIL. This implies the module does not have a Py_mod_multiple_interpreters slot set to Py_MOD_PER_INTERPRETER_GIL_SUPPORTED. In both cases, this context manager may be used to temporarily disable the check for compatible extension modules. You can get the same effect as this function by implementing the basic interface of multi-phase init (PEP 489) and lying about support for multiple interpreters (or per-interpreter GIL). c$[U5UlgN)bool disable_check)selfr=s r__init__4_incompatible_extension_module_restrictions.__init__s!-0rcP[R"UR5UlU$r;)r'_override_multi_interp_extensions_checkoverrideoldr>s r __enter__5_incompatible_extension_module_restrictions.__enter__s?? N rcLURnU?[R"U5 gr;)rDrrB)r>argsrDs r__exit__4_incompatible_extension_module_restrictions.__exit__shh H 44S9rc,UR(aS$S$)Nr)r=rEs rrC4_incompatible_extension_module_restrictions.overrides''r.Q.r)r=rDN) __name__ __module__ __qualname____firstlineno____doc__r?rFrJpropertyrC__static_attributes__rrr8r8ws*>1: //rr8c$\rSrSrSrSrSrSrg) _LazyModulezKA subclass of the module type which triggers loading upon attribute access.cV[RUS5nURnUS [RUS5[LGa@USnUS(aURX5sSSS5 $SUS'URUS5nURnUSnUn0n UR 5H2upX;aXU 'M[ X5[ Xz5:wdM.XU 'M4 URRU5 U[R;a9[ U5[ [RU5:wa[SU<S 35eURU 5 [U[5(a[RUSU5 SSS5 [X5$!,(df  N=f) z8Trigger the load of the module and return the attribute.r$lock __class__ is_loadingNT__dict__zmodule object for z. substituted in sys.modules during a lazy load)object__getattribute__ loader_staterXritemsidloader exec_moduler"r#r%update isinstance __setattr__getattr) r>attrr$rar\r^ original_name attrs_then attrs_now attrs_updatedkeyvalues rr`_LazyModule.__getattribute__s**4<,, & !&&t[9[H(5  -$55dA" !.2 \*$55dJG !) **5 $ " "+//"3JC,-2c*IN+r*//BB-2c* #4++D1!CKK/$x2ckk-&@#AA(+=m=NO1*122  .dK00&&t[)D_"bt""c" !s>F0A&FB-F F(c<URU5 [X5 g)z/Trigger the load and then perform the deletion.N)r`delattr)r>rjs r __delattr___LazyModule.__delattr__s d#rrVN)rOrPrQrRrSr`rtrUrVrrrXrXsU5#nrrXcJ\rSrSrSr\S5r\S5rSr Sr Sr Sr g ) LazyLoaderzKA loader that creates a module which defers loading until attribute access.c<[US5(d [S5eg)Nrez loader must define exec_module())hasattr TypeErrorrds r__check_eager_loaderLazyLoader.__check_eager_loaders v}-->? ?.rc6^^TRT5 UU4Sj$)z>Construct a callable which returns the eager loader made lazy.c >T"T"U0UD65$r;rV)rIkwargsclsrds r$LazyLoader.factory..ss64+B6+B'Cr)_LazyLoader__check_eager_loader)rrds``rfactoryLazyLoader.factorys   (CCrc2URU5 Xlgr;)rrd)r>rds rr?LazyLoader.__init__s !!&) rc8URRU5$r;)rd create_module)r>r)s rrLazyLoader.create_modules{{((..rc&SSKnURURlURUl0nURR 5US'UR US'UR5US'SUS'X1Rl[Ulg)zMake the module load lazily.rNr^r\r[Fr]) threadingrdr$ __loader__r^copyr\RLockrarX)r>r(rras rreLazyLoader.exec_modules~ !% KK  #)??#7#7#9 Z $*$4$4 [!(0 V%* \"'3$&rr|N) rOrPrQrRrS staticmethodr classmethodrr?rrerUrVrrrwrws>U@@DD /'rrwr;)rS_abcr _bootstraprrrr_bootstrap_externalrr r r r r rr"typesrrr*r6r8 ModuleTyperXrwrVrrrss3(%("-22.28 = 7>*b././b@%""@F''''r