grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|j_)ã@sÈdZddlmZmZmZmZmZmZmZm Z m Z zddlm Z Wn e y+dZ Ynwddl mZmZmZmZddlmZddlmZddlmZddlZddlZddlZddlZddlZddlZejd ed d �dZd Zd Z d Z!dZ"dZ#dZ$dZ%dZ&dZ'dd„Z(dd„Z)dd„Z*d8dd„Z+dd„Z,dd„Z-Gd d!„d!ƒZ.Gd"d#„d#ƒZ/Gd$d%„d%e/ej0ƒZ1d8d&d'„Z2Gd(d)„d)e/eƒZ3d8d*d+„Z4d,d-„Z5d.d/„Z6d8d0d1„Z7d2d3„Z8d4d5„Z9e ràd8d6d7„Z:dSdZ:dS)9zâThis module provides the components needed to build your own __import__ function. Undocumented functions are obsolete. In most cases it is preferred you consider using the importlib module's functionality over this module. é) Ú lock_heldÚ acquire_lockÚ release_lockÚget_frozen_objectÚis_frozen_packageÚ init_frozenÚ is_builtinÚ is_frozenÚ_fix_co_filename)Úcreate_dynamicN)Ú_ERR_MSGÚ_execÚ_loadÚ_builtin_from_name)ÚSourcelessFileLoader)Ú machinery)ÚutilzŽthe imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative usesé)Ú stackleveléééééééé cCó t |¡S)z_**DEPRECATED** Create a new module. The module is not entered into sys.modules. )ÚtypesÚ ModuleType©Úname©r"ú*/opt/alt/python310/lib64/python3.10/imp.pyÚ new_module1ó r$cCstjS)z@**DEPRECATED** Return the magic number for .pyc files. )rÚ MAGIC_NUMBERr"r"r"r#Ú get_magic<sr'cCstjjS)z$Return the magic tag for .pyc files.)ÚsysÚimplementationÚ cache_tagr"r"r"r#Úget_tagDsr+cCsBt ¡�t d¡t ||¡WdƒS1swYdS)a¡**DEPRECATED** Given the path to a .py file, return the path to its .pyc file. The .py file does not need to exist; this simply returns the path to the .pyc file calculated as if the .py file were imported. If debug_override is not None, then it must be a boolean and is used in place of sys.flags.optimize. If sys.implementation.cache_tag is None then NotImplementedError is raised. ÚignoreN)ÚwarningsÚcatch_warningsÚ simplefilterrÚcache_from_source)ÚpathÚdebug_overrider"r"r#r0Is   $þr0cCr)a~**DEPRECATED** Given the path to a .pyc. file, return the path to its .py file. The .pyc file does not need to exist; this simply returns the path to the .py file calculated to correspond to the .pyc file. If path does not conform to PEP 3147 format, ValueError will be raised. If sys.implementation.cache_tag is None then NotImplementedError is raised. )rÚsource_from_cache©r1r"r"r#r3\s r3cCs<dd„tjDƒ}dd„tjDƒ}dd„tjDƒ}|||S)ú**DEPRECATED**cSóg|]}|dtf‘qS©Úrb)Ú C_EXTENSION©Ú.0Úsr"r"r#Ú lóz get_suffixes..cSr6)Úr)Ú PY_SOURCEr:r"r"r#r=mr>cSr6r7)Ú PY_COMPILEDr:r"r"r#r=nr>)rÚEXTENSION_SUFFIXESÚSOURCE_SUFFIXESÚBYTECODE_SUFFIXES)Ú extensionsÚsourceÚbytecoder"r"r#Ú get_suffixesjs rHc@s eZdZdZdd„Zdd„ZdS)Ú NullImporterz-**DEPRECATED** Null import object. cCs0|dkr tddd�‚tj |¡rtd|d�‚dS)NÚzempty pathnamer4zexisting directory)Ú ImportErrorÚosr1Úisdir)Úselfr1r"r"r#Ú__init__{s    ÿzNullImporter.__init__cCsdS)zAlways returns None.Nr")rNÚfullnamer"r"r#Ú find_module�szNullImporter.find_moduleN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rOrQr"r"r"r#rIss rIcs.eZdZdZd‡fdd„ Z‡fdd„Z‡ZS)Ú_HackedGetDatazMCompatibility support for 'file' arguments of various load_*() functions.Ncstƒ ||¡||_dS©N)ÚsuperrOÚfile)rNrPr1rY©Ú __class__r"r#rO‹s z_HackedGetData.__init__cs†|jr=||jkr=|jjs|j}d|jvr| ¡|jjr%t|jdƒ|_}|� | ¡WdƒS1s6wYdStƒ |¡S)z;Gross hack to contort loader to deal w/ load_*()'s bad API.Úbr8N) rYr1ÚclosedÚmodeÚcloseÚopenÚreadrXÚget_data)rNr1rYrZr"r#rb�s $ÿ z_HackedGetData.get_datarW)rRrSrTrUrOrbÚ __classcell__r"r"rZr#rV†srVc@óeZdZdZdS)Ú_LoadSourceCompatibilityz5Compatibility support for implementing load_source().N©rRrSrTrUr"r"r"r#re¡órecCs\t|||ƒ}tj|||d�}|tjvrt|tj|ƒ}nt|ƒ}t ||¡|_ |j |j _ |S)N©Úloader) rerÚspec_from_file_locationr(Úmodulesr rrÚSourceFileLoaderÚ __loader__Ú__spec__ri©r!ÚpathnamerYriÚspecÚmoduler"r"r#Ú load_source¦s   rsc@rd)Ú_LoadCompiledCompatibilityz7Compatibility support for implementing load_compiled().Nrfr"r"r"r#rt´rgrtcCsZt|||ƒ}tj|||d�}|tjvrt|tj|ƒ}nt|ƒ}t||ƒ|_|j|j _ |S)r5rh) rtrrjr(rkr rrrmrnriror"r"r#Ú load_compiled¹s    rucCs˜tj |¡r3tjdd…tjdd…}|D]}tj |d|¡}tj |¡r+|}nqtd  |¡ƒ‚t j ||gd�}|t j vrHt|t j |ƒSt|ƒS)r5NrOz{!r} is not a package)Úsubmodule_search_locations)rLr1rMrrCrDÚjoinÚexistsÚ ValueErrorÚformatrrjr(rkr r)r!r1rEÚ extensionZ init_pathrqr"r"r#Ú load_packageÈs"   ÿ þÿ r|c Cs$|\}}}|r| d¡rd|vrtd |¡ƒ‚|dur*|tthvr*d |¡}t|ƒ‚|tkr4t|||ƒS|tkr>t|||ƒS|tkrmtdurm|durgt |dƒ�}t|||ƒWdƒS1s`wYdSt|||ƒS|t krvt ||ƒS|t kr~t |ƒS|tkr†t|ƒSd ||¡}t||d�‚) z–**DEPRECATED** Load a module, given information returned by find_module(). The module name must include the full package name, if any. )r?ÚUú+zinvalid file open mode {!r}Nz.file object required for import (type code {})r8z*Don't know how to import {} (type code {})r )Ú startswithryrzr@rArsrur9Ú load_dynamicr`Ú PKG_DIRECTORYr|Ú C_BUILTINÚ init_builtinÚ PY_FROZENrrK) r!rYÚfilenameZdetailsÚsuffixr^Útype_ÚmsgZ opened_filer"r"r#Ú load_moduleÜs0      $ÿ    r‰c Cs–t|tƒstd t|ƒ¡ƒ‚t|tdƒtfƒs td t|ƒ¡ƒ‚|dur?t|ƒr0ddddtffSt |ƒrs   ÿrƒcCs0ddl}|j ||¡}|jj|||d�}t|ƒS)z:**DEPRECATED** Load an extension module. rN)r!riÚorigin)Úimportlib.machineryrÚExtensionFileLoaderÚ ModuleSpecr)r!r1rYr—rirqr"r"r#r€Ks ÿr€rW);rUÚ_imprrrrrrrr r r rKZimportlib._bootstrapr r rrZimportlib._bootstrap_externalrr—rrrLr(r’rr-ÚwarnÚDeprecationWarningZ SEARCH_ERRORr@rAr9Z PY_RESOURCEr�r‚r„ZPY_CODERESOURCEZIMP_HOOKr$r'r+r0r3rHrIrVrlrersrtrur|r‰rQr˜rƒr€r"r"r"r#Úsd, þ   ý      #4