%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3.12/__pycache__/zipimport.cpython-312.pyc

�

���f�m���dZddlZddlmZmZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddgZ
ejZejddZGd�de�ZiZee
�ZdZd	Zd
ZGd�dej2�Zedzd
d
fedzdd
fddfZd�Zd�Zd�Zd�ZdZ da!d�Z"d�Z#d�Z$d�Z%ee%jL�Z'd�Z(d�Z)d�Z*d�Z+d�Z,d �Z-y)!aPzipimport provides support for importing Python modules from Zip archives.

This module exports three objects:
- zipimporter: a class; its constructor takes a path to a Zip archive.
- ZipImportError: exception raised by zipimporter objects. It's a
  subclass of ImportError, so it can be caught as ImportError, too.
- _zip_directory_cache: a dict, mapping archive paths to zip directory
  info dicts, as used in zipimporter._files.

It is usually not needed to use the zipimport module explicitly; it is
used by the builtin import mechanism for sys.path items that are paths
to Zip archives.
�N)�_unpack_uint16�_unpack_uint32�ZipImportError�zipimporter�c��eZdZy)rN)�__name__�
__module__�__qualname__��� /usr/lib/python3.12/zipimport.pyrr"s��r
�sPKi��c�T�eZdZdZd�Zdd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zy)ra�zipimporter(archivepath) -> zipimporter object

    Create a new zipimporter instance. 'archivepath' must be a path to
    a zipfile, or to a specific path inside a zipfile. For example, it can be
    '/tmp/myimport.zip', or '/tmp/myimport.zip/mydirectory', if mydirectory is a
    valid directory inside the archive.

    'ZipImportError is raised if 'archivepath' doesn't point to a valid Zip
    archive.

    The 'archive' attribute of zipimporter objects contains the name of the
    zipfile targeted.
    c���t|t�stdt|�����|s
t	d|���t
r|j
t
t�}g}		tj|�}|jdzdk7r
t	d|���		t|}||_||_tj(|ddd��|_|j*r|xj*tz
c_yy#ttf$r@tj|�\}}||k(r
t	d|���|}|j|�YnwxYw��#t $rt#|�}|t|<Y��wxYw)Nzexpected str, not zarchive path is empty��pathi�i�znot a Zip file���)�
isinstance�str�	TypeError�typer�alt_path_sep�replace�path_sep�_bootstrap_external�
_path_stat�st_mode�OSError�
ValueError�_path_split�append�_zip_directory_cache�KeyError�_read_directory�_files�archive�
_path_join�prefix)�selfrr)�st�dirname�basename�filess       r�__init__zzipimporter.__init__@sY���$��$��0��d���?�@�@�� �!8�t�D�D���<�<��h�7�D����
�(�3�3�D�9���J�J��)�h�6�(�)9��E�E��	/�(��.�E�������)�4�4�f�T�r�T�l�C����;�;��K�K�8�#�K���1�Z�(�
(�%8�$C�$C�D�$I�!����d�?�(�)9��E�E����
�
�h�'�
(����(�	/�#�D�)�E�).� ��&�	/�s%�C,�	D?�,AD;�:D;�?E�ENc��t||�}|�tj|||��St||�}t	||�rK|j
�t�|��}tj|dd��}|jj|�|Sy)zkCreate a ModuleSpec for the specified module.

        Returns None if the module cannot be found.
        N)�
is_packageT)�name�loaderr1)
�_get_module_info�
_bootstrap�spec_from_loader�_get_module_path�_is_dirr'r�
ModuleSpec�submodule_search_locationsr")r*�fullname�target�module_info�modpathr�specs       r�	find_speczzipimporter.find_spechs���
'�t�X�6���"��.�.�x��+�V�V�'�t�X�6�G��t�W�%��,�,���z�'��;��!�,�,�(�4�8<�>���/�/�6�6�t�<���r
c�&�t||�\}}}|S)z�get_code(fullname) -> code object.

        Return the code object for the specified module. Raise ZipImportError
        if the module couldn't be imported.
        ��_get_module_code�r*r;�code�	ispackager>s     r�get_codezzipimporter.get_code�s��$4�D�(�#C� ��i���r
c�H�tr|jtt�}|}|j|jtz�r|t|jtz�d}	|j|}t|j|�S#t$rtdd|��wxYw)z�get_data(pathname) -> string with file data.

        Return the data associated with 'pathname'. Raise OSError if
        the file wasn't found.
        Nr�)
rrr�
startswithr'�lenr&r$r�	_get_data)r*�pathname�key�	toc_entrys    r�get_datazzipimporter.get_data�s�����'�'��h�?�H������t�|�|�h�6�7��3�t�|�|�h�6�7�8�9�C�	&����C�(�I�����y�1�1���	&��!�R��%�%�	&�s�%B
�
B!c�&�t||�\}}}|S)z�get_filename(fullname) -> filename string.

        Return the filename for the specified module or raise ZipImportError
        if it couldn't be imported.
        rBrDs     r�get_filenamezzipimporter.get_filename�s��$4�D�(�#C� ��i���r
c��t||�}|�td|��|���t||�}|rtj|d�}n|�d�}	|j
|}t|j|�j�S#t$rYywxYw)z�get_source(fullname) -> source string.

        Return the source code for the specified module. Raise ZipImportError
        if the module couldn't be found, return None if the archive does
        contain the module, but has no source for it.
        N�can't find module �r2�__init__.py�.py)
r4rr7rr(r&r$rLr'�decode)r*r;�mir�fullpathrOs      r�
get_sourcezzipimporter.get_source�s����d�H�
-��
�:� �#5�h�\�!B��R�R���h�/��
�*�5�5�d�M�J�H���s�|�H�	����H�-�I�����y�1�8�8�:�:���	��	�s�
A=�=	B	�B	c�B�t||�}|�td|��|���|S)z�is_package(fullname) -> bool.

        Return True if the module specified by fullname is a package.
        Raise ZipImportError if the module couldn't be found.
        rTrU)r4r)r*r;rYs   rr1zzipimporter.is_package�s/���d�H�
-��
�:� �#5�h�\�!B��R�R��	r
c���d}tj|t�t||�\}}}tj
j
|�}|�t|t�st|�}|tj
|<||_		|r4t||�}tj|j|�}|g|_t|d�st |_tj"|j$||�t'||j$�	tj
|}t-j.d||�|S#tj
|=�xYw#t($rt+d|�d���wxYw)a@load_module(fullname) -> module.

        Load the module specified by 'fullname'. 'fullname' must be the
        fully qualified (dotted) module name. It returns the imported
        module, or raises ZipImportError if it could not be imported.

        Deprecated since Python 3.10. Use exec_module() instead.
        zrzipimport.zipimporter.load_module() is deprecated and slated for removal in Python 3.12; use exec_module() instead�__builtins__zLoaded module z not found in sys.moduleszimport {} # loaded from Zip {})�	_warnings�warn�DeprecationWarningrC�sys�modules�getr�_module_type�
__loader__r7rr(r'�__path__�hasattrr^�_fix_up_module�__dict__�execr$�ImportErrorr5�_verbose_message)	r*r;�msgrErFr>�modrrZs	         r�load_modulezzipimporter.load_module�sB��C�����s�.�/�#3�D�(�#C� ��i���k�k�o�o�h�'���;�j��l�;��x�(�C�$'�C�K�K��!����	��(��h�7��.�9�9�$�,�,��M�� (�z����3��/�#/�� ��.�.�s�|�|�X�w�O���s�|�|�$�
	V��+�+�h�'�C�	�#�#�$D�h�PW�X��
��	����H�%����	V���x�l�:S�T�U�U�	V�s�BD5�	E�5E	�E%c�f�	|j|�sy	ddlm}|||�S#t$rYywxYw)z�Return the ResourceReader for a package in a zip file.

        If 'fullname' is a package within the zip file, return the
        'ResourceReader' object for the package.  Otherwise return None.
        Nr)�	ZipReader)r1r�importlib.readersrr)r*r;rrs   r�get_resource_readerzzipimporter.get_resource_readersA��	��?�?�8�,��-�	0���x�(�(���	��	�s�$�	0�0c���	t|j�|_|jt|j<y#t$r*tj|jd�i|_YywxYw)z)Reload the file data of the archive path.N)r%r'r&r#r�pop�r*s r�invalidate_cacheszzipimporter.invalidate_cachessT��	�)�$�,�,�7�D�K�15��� ����.���	� �$�$�T�\�\�4�8��D�K�	�s�7:�0A-�,A-c�F�d|j�t�|j�d�S)Nz<zipimporter object "z">)r'rr)rws r�__repr__zzipimporter.__repr__s!��&�t�|�|�n�X�J�t�{�{�m�2�N�Nr
�N)r	r
r�__doc__r/r@rGrPrRr[r1rprtrxrzrr
rrr.sA���"%$�P�6�2�*	�;�4	�(�V)��Or
z__init__.pycTrVF)z.pycTF)rWFFc�D�|j|jd�dzS)N�.�)r)�
rpartition)r*r;s  rr7r7+s!���;�;��,�,�S�1�!�4�4�4r
c�0�|tz}||jvSr{)rr&)r*r�dirpaths   rr8r8/s���X�o�G��d�k�k�!�!r
c�h�t||�}tD]\}}}||z}||jvs�|cSyr{)r7�_zip_searchorderr&)r*r;r�suffix�
isbytecoderFrZs       rr4r48sD���D�(�+�D�)9��%��
�I��&�=���t�{�{�"����r
c	�
�	tj|�}|5|j	�}		|jtd�|j	�}|jt�}t|�tk7rtd|��|���|ddtk7r�	|jdd�|j	�}t|tz
tz
d�}	|j|�|j�}|jt�}|dkrtd|��|���|||tz}t|�tk7rtd|��|���|t|�z
|z}t|d	d
�}	t|d
d�}
||	krtd|��|���||
krtd
|��|���||	z}||
z
}|dkrtd|��|���i}d}
	|j|�	|jd�}t|�dkrtd��|dddk7r�n�t|�dk7rtd��t|dd�}t|dd	�}t|d	d�}t|dd
�}t|d
d�}t|dd�}t|dd�}t|dd�}t|dd�}t|dd�}t|dd�}||z|z}	||
kDrtd|��|���||z
}	|j|�}t|�|k7rtd|��|���	t|j|	|z
��|	|z
k7rtd|��|���	|dzr|j!�}n	|j!d�}|j)dt*�}t-j.||�}||||||||f}|||<|
d z
}
���	|j|�	ddd�t1j2d!
|�S#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t$rtd|��|���wxYw#t"$r(|j!d�j%t&�}Y��qwxYw#|j|�wxYw#1swY��8xYw)"Nzcan't open Zip file: rr�can't read Zip file: �rznot a Zip file: zcorrupt Zip file: ���zbad central directory size: zbad central directory offset: z&bad central directory size or offset: �.�EOF read where not expectedsPK��
����� �"�*zbad local header offset: i�ascii�latin1�/rz!zipimport: found {} names in {!r})�_io�	open_coderr�tell�seek�END_CENTRAL_DIR_SIZE�readrK�STRING_END_ARCHIVE�max�MAX_COMMENT_LEN�rfindr�EOFErrorrrX�UnicodeDecodeError�	translate�cp437_tablerrrr(r5rm)r'�fp�start_offset�header_position�buffer�	file_size�max_comment_start�data�pos�header_size�
header_offset�
arc_offsetr.�count�flags�compress�time�date�crc�	data_size�	name_size�
extra_size�comment_size�file_offsetr2r�ts                           rr%r%Ws���P�
�]�]�7�
#��
�s"��w�w�y��n	"�
X����-�-�q�1�"$�'�'�)�����!5�6���6�{�2�2�$�'<�W�K�%H�w�W�W��b�q�z�/�/�7��G�G�A�q�M� "���	�I�%(�	�O�(C�(<�)=�>?�%A�!�7��G�G�-�.��7�7�9�D��j�j�!3�4����7�(�+;�G�;�)G�.5�7�7��c�#�&:�":�;���v�;�"6�6�(�+=�g�[�)I�.5�7�7�"+�c�$�i�"7�#�"=��(���2��7�K�*�6�"�R�=�9�M���,�$�'C�G�;�%O�V]�^�^���.�$�'E�g�[�%Q�X_�`�`��{�*�O�(�=�8�J��A�~�$�'M�g�[�%Y�`g�h�h��E��E�
X�����(���������v�;��?�"�#@�A�A��"�1�:��.���v�;�"�$�"�#@�A�A�&�v�a��|�4��)�&��B�-�8��%�f�R��m�4��%�f�R��m�4��$�V�B�r�]�3��*�6�"�R�=�9�	�*�6�"�R�=�9�	�*�6�"�R�=�9�	�+�F�2�b�M�:�
�-�f�R��m�<��,�V�B�r�]�;��'�*�4�|�C����.�(�+D�W�K�)P�W^�_�_��z�)��\��7�7�9�-�D��t�9�	�)�(�+@���)L�SZ�[�[�\��2�7�7�;��#:�;�<��i�@W�W�,�/D�W�K�-P�W^�_�_�X�
�5�=��;�;�=�D�L�#�{�{�7�3���|�|�C��2��*�5�5�g�t�D���8�Y�	�;��d�TW�X����d����
��m��d
�G�G�L�!�gs"�h��� C�U�G�T��L��q�P��4�W�K�@�w�O�O�P���
X�$�'<�W�K�%H�w�W�W�
X���7�(�+@���)L�.5�7�7�7���7�(�+@���)L�.5�7�7�7��:�
X�$�'<�W�K�%H�w�W�W�
X��:�\�(�+@���)L�SZ�[�[�\���\�(�+@���)L�SZ�[�[�\��.�L�#�{�{�8�4�>�>�{�K��L��
�G�G�L�!��gs"�s"�s��O&�S;�<P�(.S%�"P �9S%�!P=�5CS%�Q�D
S%�$Q7�5S%�3R�S%�R1�0AS%�3S;�&P�P�S%� P:�:S%�=Q�S%�Q4�4S%�7R�S%�R.�.S%�1-S"�S%�!S"�"S%�%S8�8S;�;Tu�	

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ c��tr tjd�td��da	ddlm}	datjd�|S#t$r!tjd�td��wxYw#dawxYw)Nzzipimport: zlib UNAVAILABLE�)can't decompress data; zlib not availableTr��
decompressFzzipimport: zlib available)�_importing_zlibr5rmr�zlibr��	Exceptionr�s r�_get_decompress_funcr��s����	�#�#�$A�B��H�I�I��O� �#�
 ����� ;�<�����J��#�#�$A�B��H�I�I�J�� ��s�A
�
*A4�4A7�7A;c���|\}}}}}}}}	|dkrtd��tj|�5}
	|
j|�|
jd�}t
|�dk7rtd��|dddk7rtd	|��|���t|d
d�}t|dd�}
d|z|
z}||z
}	|
j|�|
j|�}t
|�|k7rt	d��	ddd�|dk(rS	t�}|d�S#t$rtd|��|���wxYw#t$rtd|��|���wxYw#1swY�^xYw#t$rtd
��wxYw)Nrznegative data sizer�rr�r�r�sPKzbad local file header: �r�zzipimport: can't read datar�i�)rr�r�r�rr�rKr�rr�r�)r'rO�datapathr�r�r�r�r�r�r�r�r�r�r�r��raw_datar�s                 rrLrLs���MV�J�H�h�	�9�k�4��s��1�}��1�2�2�	���w�	�8�2�	T��G�G�K� ��������v�;�"���8�9�9��"�1�:��&� �#:�7�+�!F�W�U�U�"�6�"�R�=�1�	�#�F�2�b�M�2�
��9�n�z�1���{�"��	T��G�G�K� ��7�7�9�%���x�=�I�%��6�7�7�&�/8�4�1�}���J�)�+�
��h��$�$��?�	T� �#8���!D�7�S�S�	T�� �	T� �#8���!D�7�S�S�	T��)8�8��B�J��H�I�I�J�sG�E	�D�A+E	�0D,�*E	�<
E�D)�)E	�,E�E	�	E�E*c�$�t||z
�dkS)Nr)�abs)�t1�t2s  r�	_eq_mtimer�?s���r�B�w�<�1��r
c�\�||d�}tj|||�}|dzdk7}|r{|dzdk7}tjdk7r�|stjdk(r�t	||�}	|	��tj
tj|	�}
tj||
||�nSt||�\}}|rBtt|dd�|�rt|dd	�|k7rtjd
|���ytj|d	d�}
t|
t �st#d|�d���|
S)
N)r2rrrr�never�alwaysr�r�r�zbytecode is stale for zcompiled module z is not a code object)r�
_classify_pyc�_imp�check_hash_based_pycs�_get_pyc_source�source_hash�_RAW_MAGIC_NUMBER�_validate_hash_pyc�_get_mtime_and_size_of_sourcer�rr5rm�marshal�loadsr�
_code_typer)r*rMrZr;r��exc_detailsr��
hash_based�check_source�source_bytesr��source_mtime�source_sizerEs              r�_unmarshal_coder�GsA�����K�

 �-�-�d�H�k�J�E�����!�J���t�|�q�(���&�&�'�1���!;�!;�x�!G�*�4��:�L��'�"�.�.�'�9�9� ���
$�6�6��+�x��>�
*�$��9�	"��k���n�T�!�B�Z�8�,�G�"�4��2�;�/�;�>��+�+�,�X�L�9�;���=�=��b�c��#�D��d�J�'��*�8�,�6K�L�M�M��Kr
c�N�|jdd�}|jdd�}|S)Ns
�
�
)r)�sources r�_normalize_line_endingsr�ts'��
�^�^�G�U�
+�F�
�^�^�E�5�
)�F��Mr
c�6�t|�}t||dd��S)NrkT)�dont_inherit)r��compile)rMr�s  r�_compile_sourcer�{s��
$�V�
,�F��6�8�V�$�?�?r
c�z�tj|dz	dz|dz	dz|dz|dz	|dz	dz|dzdzd	d	d	f	�S)
N�	i������?rr)r��mktime)�dr�s  r�_parse_dostimer��sY���;�;�	
�a��4��	
�a��3��	�D��	�R��	
�a��4��	
�T��Q��
�B����r
c��	|dddvsJ�|dd}|j|}|d}|d}|d}t||�|fS#tttf$rYywxYw)Nr��c�or���)rr)r&r�r$�
IndexErrorr)r*rrOr�r��uncompressed_sizes      rr�r��s~����B�C�y�J�&�&�&��C�R�y���K�K��%�	���|����|��%�a�L���d�D�)�+<�<�<���j�)�,����s�9<�A�Ac��|dddvsJ�|dd}	|j|}t|j|�S#t$rYywxYw)Nrr�)r&rLr'r$)r*rrOs   rr�r��s[�����9�
�"�"�"����9�D�2��K�K��%�	�����y�1�1������s�5�	A�Ac���t||�}d}tD]�\}}}||z}tjd|jt
|d��	|j|}|d}	t|j|�}
d}|r	t||	|||
�}nt|	|
�}|���|d}	|||	fcS|rd|��}
t|
|��|�td|��|���#t$r}|}Yd}~�Ed}~wwxYw#t$rY��wxYw)Nz
trying {}{}{}r)�	verbosityrzmodule load failed: rUrT)
r7r�r5rmr'rr&rLr�rlr�r$r)r*r;r�import_errorr�r�rFrZrOr>r�rE�excrns              rrCrC�s)���D�(�+�D��L�)9�S�%��
�I��&�=���#�#�O�T�\�\�8�X�ab�c�	,����H�-�I� ��l�G��T�\�\�9�5�D��D��'�*�4��(�H�d�S�D�'�w��5���|����l�G���G�+�+�/S�2�(���7�C� ��8�4�,�F� �#5�h�\�!B��R�R��#�'�#&�L��'���	��	�s*�
C"�9C
�
	C�C�C�"	C.�-C.).r|�_frozen_importlib_externalrrr�_frozen_importlibr5r�r�r�rbr�r_�__all__r�path_separatorsrrlrr#rrer�r�r��
_LoaderBasicsrr�r7r8r4r%r�r�r�rLr�r��__code__r�r�r�r�r�r�rCrr
r�<module>rs3��� 9�E�&��
��
����]�
+���'�'��"�2�2�1�2�6��	�[�	����C�y����"����lO�%�3�3�lO�j����d�+�
�
��u�d�+���	��5�"��>{�J/��:��
�*(%�\�&�P�/�*�*�
+�
�
�@��
�&
2� Sr

Zerion Mini Shell 1.0