ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/imp.cpython-311.opt-2.pyc

�

�fn)���	ddlmZmZmZmZmZmZmZmZm	Z	m
Z
	ddlmZn
#e$rdZYnwxYwddl
mZmZmZmZddlmZddlmZddlmZddlZddlZddlZddlZddlZddlZejded	�
��dZdZd	Z dZ!d
Z"dZ#dZ$dZ%dZ&dZ'd�Z(d�Z)d�Z*d)d�Z+d�Z,d�Z-Gd�d��Z.Gd�d��Z/Gd�de/ej0��Z1d)d�Z2Gd �d!e/e��Z3d)d"�Z4d#�Z5d$�Z6d)d%�Z7d&�Z8d'�Z9erd)d(�Z:dSdZ:dS)*�)
�	lock_held�acquire_lock�release_lock�get_frozen_object�is_frozen_package�init_frozen�
is_builtin�	is_frozen�_fix_co_filename�_frozen_module_names)�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��������	c�,�	tj|��S�N)�types�
ModuleType��names �*/opt/alt/python311/lib64/python3.11/imp.py�
new_moduler&1s�����D�!�!�!�c��	tjSr )r�MAGIC_NUMBER�r'r%�	get_magicr+<s�����r'c�&�	tjjSr )�sys�implementation�	cache_tagr*r'r%�get_tagr0Ds��.���'�'r'c��	tj��5tjd��tj||��cddd��S#1swxYwYdS)N�ignore)�warnings�catch_warnings�simplefilterr�cache_from_source)�path�debug_overrides  r%r6r6Is����
�	 �	"�	"�<�<���h�'�'�'��%�d�N�;�;�<�<�<�<�<�<�<�<�<�<�<�<����<�<�<�<�<�<s�)A�A�Ac�,�	tj|��Sr )r�source_from_cache�r7s r%r:r:\s��	��!�$�'�'�'r'c��	d�tjD��}d�tjD��}d�tjD��}||z|zS)Nc�"�g|]}|dtf��
S��rb)�C_EXTENSION��.0�ss  r%�
<listcomp>z get_suffixes.<locals>.<listcomp>ls��O�O�O�Q�1�d�K�(�O�O�Or'c�"�g|]}|dtf��
S)�r)�	PY_SOURCErAs  r%rDz get_suffixes.<locals>.<listcomp>ms��
E�
E�
E�a�q�#�y�!�
E�
E�
Er'c�"�g|]}|dtf��
Sr>)�PY_COMPILEDrAs  r%rDz get_suffixes.<locals>.<listcomp>ns��L�L�L�1��D�+�&�L�L�Lr')r�EXTENSION_SUFFIXES�SOURCE_SUFFIXES�BYTECODE_SUFFIXES)�
extensions�source�bytecodes   r%�get_suffixesrPjsW���O�O�)�2N�O�O�O�J�
E�
E�9�+D�
E�
E�
E�F�L�L�	�0K�L�L�L�H�����)�)r'c��eZdZ	d�Zd�ZdS)�NullImporterc��|dkrtdd����tj�|��rtd|����dS)N�zempty pathnamer;zexisting directory)�ImportError�osr7�isdir)�selfr7s  r%�__init__zNullImporter.__init__{sS���2�:�:��.�R�8�8�8�8�
�W�]�]�4�
 �
 �	?��2��>�>�>�>�	?�	?r'c��	dSr r*)rX�fullnames  r%�find_modulezNullImporter.find_module�s
��"��tr'N)�__name__�
__module__�__qualname__rYr\r*r'r%rRrRss7�������?�?�?�����r'rRc�,��eZdZ	d�fd�	Z�fd�Z�xZS)�_HackedGetDataNc�Z��t���||��||_dSr )�superrY�file)rXr[r7rd�	__class__s    �r%rYz_HackedGetData.__init__�s(���
������4�(�(�(���	�	�	r'c�|��	|jr�||jkr�|jjs$|j}d|jvr|���|jjrt|jd��x|_}|5|���cddd��S#1swxYwYdSt���|��S)N�br?)	rdr7�closed�mode�close�open�readrc�get_data)rXr7rdres   �r%rmz_HackedGetData.get_data�s���I��9�
	*����*�*��9�#�
!��y���d�i�'�'��J�J�L�L�L��y��
9�#'��	�4�#8�#8�8��	�D��
#�
#��y�y�{�{�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#�
#����
#�
#�
#�
#�
#�
#��7�7�#�#�D�)�)�)s�/B�B�Br )r]r^r_rYrm�
__classcell__)res@r%rara�s[��������������*�*�*�*�*�*�*�*�*r'rac��eZdZdS)�_LoadSourceCompatibilityN�r]r^r_r*r'r%rprp�s������?�?r'rpc�(�t|||��}tj|||���}|tjvr!t|tj|��}nt
|��}tj||��|_	|j	|j
_|S�N)�loader)rpr�spec_from_file_locationr-�modulesrrr�SourceFileLoader�
__loader__�__spec__rt�r$�pathnamerdrt�spec�modules      r%�load_sourcer~�s���
%�d�H�d�
;�
;�F��'��h�v�F�F�F�D��s�{����t�S�[��.�/�/����t����"�2�4��B�B�F��#�.�F�O���Mr'c��eZdZdS)�_LoadCompiledCompatibilityNrqr*r'r%r�r��s������A�Ar'r�c� �	t|||��}tj|||���}|tjvr!t|tj|��}nt
|��}t||��|_|j|j	_
|Srs)r�rrur-rvrrrrxryrtrzs      r%�
load_compiledr��s����
'��h��
=�
=�F��'��h�v�F�F�F�D��s�{����t�S�[��.�/�/����t����-�T�8�<�<�F��#�.�F�O���Mr'c��	tj�|��r�tjdd�tjdd�z}|D]H}tj�|d|z��}tj�|��r|}n#�Itd�	|�����tj||g���}|tj
vr t|tj
|��St|��S)NrYz{!r} is not a package)�submodule_search_locations)rVr7rWrrKrL�join�exists�
ValueError�formatrrur-rvrr)r$r7rM�	extension�	init_pathr|s      r%�load_packager��s���	�w�}�}�T���	C��/����2��1�!�!�!�4�5�
�#�	C�	C�I�����T�:�	�+A�B�B�I��w�~�~�i�(�(�
� ����
��4�;�;�D�A�A�B�B�B��'��d�CE�G�G�G�D��s�{����T�3�;�t�,�-�-�-��T�{�{�r'c��	|\}}}|r;|�d��rd|vr"td�|�����|�4|tthvr$d�|��}t|���|tkrt|||��S|tkrt
|||��S|tkrUt�N|�;t|d��5}t|||��cddd��S#1swxYwYdSt|||��S|tkrt||��S|tkrt|��S|tkrt|��Sd�||��}t!||����)NrF�+zinvalid file open mode {!r}z.file object required for import (type code {})r?z*Don't know how to import {} (type code {})r#)�
startswithr�r�rGrIr~r�r@�load_dynamicrk�
PKG_DIRECTORYr��	C_BUILTIN�init_builtin�	PY_FROZENrrU)	r$rd�filename�details�suffixri�type_�msg�opened_files	         r%�load_moduler��s����"��F�D�%��*�T�_�_�S�)�)�*�S�D�[�[��6�=�=�d�C�C�D�D�D�	
��%�I�{�#;�;�;�>�E�E�e�L�L����o�o��	�)�	�	��4��4�0�0�0�	�+�	�	��T�8�T�2�2�2�	�+�	�	�,�":��<��h��%�%�
A��#�D�(�K�@�@�
A�
A�
A�
A�
A�
A�
A�
A�
A�
A�
A�
A����
A�
A�
A�
A�
A�
A� ��h��5�5�5�	�-�	�	��D�(�+�+�+�	�)�	�	��D�!�!�!�	�)�	�	��4� � � �;�B�B�4��O�O���#�D�)�)�)�)s�C5�5C9�<C9c��	t|t��s/td�t	|�������t|t	d��t
f��s/t
d�t	|�������|�Dt|��r
ddddtffSt|��r
ddddtffStj}|D]�}tj�||��}dtjdfD]W}d|z}tj�||��}tj�|��rd|ddt$ffccS�Xt'��D]L\}}}||z}	tj�||	��}tj�|��rn�M��n#t)t+j|��|����d}
d|vrGt-|d	��5}t/j|j��d}
ddd��n#1swxYwYt-|||
�
��}|||||ffS)Nz'name' must be a str, not {}z%'path' must be None or a list, not {}rTz.pyrrYr#rgr?)�encoding)�
isinstance�str�	TypeErrorr��type�list�RuntimeErrorr	r�r
r�r-r7rVr�rrL�isfiler�rPrUrrk�tokenize�detect_encoding�readline)r$r7�entry�package_directoryr��package_file_name�	file_pathrir��	file_namer�rds            r%r\r\�s���	��d�C� � �8��6�=�=�d�4�j�j�I�I�J�J�J�
��t�D�z�z�4�0�
1�
1�8��$�$*�F�4��:�:�$6�$6�8�8�	8��|��d���	����B�	�2�2�2�
�t�_�_�	����B�	�2�2�2��8�D��<�<���G�L�L���5�5���i�9�!�<�=�	H�	H�F� *�V� 3������%6�8I�J�J�I��w�~�~�i�(�(�
H��.��R��0G�G�G�G�G�G�G�
H�#/�>�>�	�	��F�D�%��v�
�I�����U�I�6�6�I��w�~�~�i�(�(�
���
�
�
���(�/�$�/�/�d�;�;�;�;��H�
�$���
�)�T�
"�
"�	B�d��/��
�>�>�q�A�H�	B�	B�	B�	B�	B�	B�	B�	B�	B�	B�	B����	B�	B�	B�	B��	�4�(�3�3�3�D���V�T�5�1�1�1s� H2�2H6�9H6c�,�	tj|��Sr )�	importlib�reload)r}s r%r�r�3s�����F�#�#�#r'c�F�		t|��S#t$rYdSwxYwr )rrUr#s r%r�r�>s<���
�!�$�'�'�'�������t�t����s��
 � c��	ddl}|j�||��}|j�|||���}t	|��S)Nr)r$rt�origin)�importlib.machineryr�ExtensionFileLoader�
ModuleSpecr)r$r7rdr�rtr|s      r%r�r�Ks_��	�	#�"�"�"��$�8�8��t�D�D���"�-�-��f�T�.�3�3���T�{�{�r'r );�_imprrrrrrr	r
rrr
rU�importlib._bootstraprrrr�importlib._bootstrap_externalrr�rrrVr-r�r!r3�warn�DeprecationWarning�SEARCH_ERRORrGrIr@�PY_RESOURCEr�r�r��PY_CODERESOURCE�IMP_HOOKr&r+r0r6r:rPrRrarwrpr~r�r�r�r�r\r�r�r�r*r'r%�<module>r�sz���:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:�:��#�#�#�#�#�#�#�������N�N�N�����L�K�K�K�K�K�K�K�K�K�K�K�>�>�>�>�>�>�����������������	�	�	�	�
�
�
�
�������������
��
�D�!�Q�0�0�0�0���
�	��������
�
�	�
�	�����"�"�"����(�(�(�
<�<�<�<�&(�(�(�*�*�*���������&*�*�*�*�*�*�*�*�6@�@�@�@�@�~�y�/I�@�@�@�
����B�B�B�B�B��1E�B�B�B�
�������( *� *� *�F12�12�12�12�h$�$�$�	�	�	����������L�L�Ls�"�,�,

Zerion Mini Shell 1.0