ok

Mini Shell

Direktori : /opt/alt/python38/lib64/python3.8/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/zipimport.cpython-38.opt-2.pyc

U

.��c-x�@sNddlZddlmZmZddlZddlZddlZddlZddl	Z	ddl
Z
ddgZejZej
dd�ZGdd�de�ZiZee	�ZdZdZd	ZGd
d�d�Zedddfed
ddfddfZdd�Zdd�Zdd�Zdd�ZdZdadd�Zdd�Z dd�Z!d d!�Z"ee"j#�Z$d"d#�Z%d$d%�Z&d&d'�Z'd(d)�Z(d*d+�Z)d,d-�Z*Gd.d/�d/�Z+dS)0�N)�_unpack_uint16�_unpack_uint32�ZipImportError�zipimporter�c@seZdZdS)rN)�__name__�
__module__�__qualname__�r
r
�./opt/alt/python38/lib64/python3.8/zipimport.pyr!s�sPKi��c@sheZdZdd�Zddd�Zddd�Zdd	�Zd
d�Zdd
�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
dS)rc	Cs$t|t�sddl}|�|�}|s,td|d��tr<|�tt�}g}zt�	|�}WnHt
tfk
r�t�|�\}}||kr�td|d��|}|�
|�Yq@X|jd@dkr�td|d��q�q@zt|}Wn$tk
r�t|�}|t|<YnX||_||_tj|ddd��|_|j�r |jt7_dS)Nrzarchive path is empty��pathznot a Zip filei�i����)�
isinstance�str�os�fsdecoder�alt_path_sep�replace�path_sep�_bootstrap_external�
_path_stat�OSError�
ValueError�_path_split�append�st_mode�_zip_directory_cache�KeyError�_read_directory�_files�archive�
_path_join�prefix)�selfrrr$�st�dirname�basename�filesr
r
r�__init__?s:

zzipimporter.__init__NcCsNt||�}|dk	r|gfSt||�}t||�rFd|j�t�|��gfSdgfS�N)�_get_module_info�_get_module_path�_is_dirr"r)r%�fullnamer�mi�modpathr
r
r�find_loaderms



zzipimporter.find_loadercCs|�||�dS)Nr)r2)r%r/rr
r
r�find_module�s	zzipimporter.find_modulecCst||�\}}}|Sr+��_get_module_code�r%r/�code�	ispackager1r
r
r�get_code�szzipimporter.get_codecCsvtr|�tt�}|}|�|jt�r:|t|jt�d�}z|j|}Wn tk
rhtdd|��YnXt	|j|�S)Nr�)
rrr�
startswithr"�lenr!rr�	_get_data)r%�pathname�key�	toc_entryr
r
r�get_data�szzipimporter.get_datacCst||�\}}}|Sr+r4r6r
r
r�get_filename�szzipimporter.get_filenamecCs�t||�}|dkr$td|��|d��t||�}|r@t�|d�}n
|�d�}z|j|}Wntk
rnYdSXt|j|��	�S)N�can't find module ��name�__init__.py�.py)
r,rr-rr#r!rr=r"�decode)r%r/r0r�fullpathr@r
r
r�
get_source�s


zzipimporter.get_sourcecCs(t||�}|dkr$td|��|d��|S)NrCrD)r,r)r%r/r0r
r
r�
is_package�s
zzipimporter.is_packagecCs�t||�\}}}tj�|�}|dks.t|t�s@t|�}|tj|<||_zT|rlt||�}t�	|j
|�}|g|_t|d�s|t
|_
t�|j||�t||j�Wntj|=�YnXztj|}Wn$tk
r�td|�d���YnXt�d||�|S)N�__builtins__zLoaded module z not found in sys.moduleszimport {} # loaded from Zip {})r5�sys�modules�getr�_module_type�
__loader__r-rr#r"�__path__�hasattrrL�_fix_up_module�__dict__�execr�ImportError�
_bootstrap�_verbose_message)r%r/r7r8r1�modrrIr
r
r�load_module�s0


zzipimporter.load_modulecCsXz|�|�sWdSWntk
r*YdSXtjsNddlm}|�t�dt_t||�S)Nr)�ResourceReaderT)rKr�_ZipImportResourceReader�_registered�
importlib.abcr\�register)r%r/r\r
r
r�get_resource_readers


zzipimporter.get_resource_readercCsd|j�t�|j�d�S)Nz<zipimporter object "z">)r"rr$)r%r
r
r�__repr__"szzipimporter.__repr__)N)N)rrr	r*r2r3r9rArBrJrKr[rarbr
r
r
rr-s.
 


&z__init__.pycTrFF)z.pycTF)rGFFcCs|j|�d�dS)N�.�)r$�
rpartition)r%r/r
r
rr-4sr-cCs|t}||jkSr+)rr!)r%r�dirpathr
r
rr.8sr.cCs8t||�}tD]$\}}}||}||jkr|SqdSr+)r-�_zip_searchorderr!)r%r/r�suffix�
isbytecoder8rIr
r
rr,As


r,c	Cs�zt�|�}Wn&tk
r4td|��|d��YnX|���z$|�td�|��}|�t�}Wn&tk
r�td|��|d��YnXt|�tkr�td|��|d��|dd�t	k�r�z|�dd�|��}Wn&tk
r�td|��|d��YnXt
|ttd�}z|�|�|��}Wn(tk
�rJtd|��|d��YnX|�t	�}|dk�rrtd|��|d��|||t�}t|�tk�r�td|��|d��|t|�|}t
|d	d
��}t
|d
d��}	||k�r�td|��|d��||	k�r
td
|��|d��||8}||	}
|
dk�r6td|��|d��i}d}z|�|�Wn(tk
�rttd|��|d��YnX|�d�}t|�dk�r�td��|dd�dk�r��q�t|�dk�r�td��t|dd��}
t|dd	��}t|d	d��}t|dd
��}t
|d
d��}t
|dd��}t
|dd��}t|dd��}t|dd��}t|dd��}t
|dd��}|||}||	k�r�td|��|d��||
7}z|�|�}Wn(tk
�r�td|��|d��YnXt|�|k�r�td|��|d��z2t|�||��||k�r*td|��|d��Wn(tk
�rTtd|��|d��YnX|
d@�rj|��}n6z|�d�}Wn&tk
�r�|�d��t�}YnX|�dt�}t�||�}||||||||f}|||<|d 7}�qvW5QRXt�d!||�|S)"Nzcan't open Zip file: r
rd�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�seek�END_CENTRAL_DIR_SIZE�tell�readr<�STRING_END_ARCHIVE�max�MAX_COMMENT_LEN�rfindr�EOFErrorrrH�UnicodeDecodeError�	translate�cp437_tablerrrr#rXrY)r"�fp�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_offsetrEr�tr
r
rr `s�
���

�


�
�






r u�	

 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ cCsltrt�d�td��daz<zddlm}Wn&tk
rRt�d�td��YnXW5daXt�d�|S)Nzzipimport: zlib UNAVAILABLE�)can't decompress data; zlib not availableTFr��
decompresszzipimport: zlib available)�_importing_zlibrXrYr�zlibr��	Exceptionr�r
r
r�_get_decompress_func�s


r�c	Cs�|\}}}}}}}}	|dkr$td��t�|���}
z|
�|�Wn&tk
rftd|��|d��YnX|
�d�}t|�dkr�td��|dd�dkr�td	|��|d��t|d
d��}t|dd��}
d||
}||7}z|
�|�Wn(tk
�rtd|��|d��YnX|
�|�}t|�|k�r4td��W5QRX|dk�rL|Sz
t	�}Wnt
k
�rttd
��YnX||d�S)Nrznegative data sizerjr
rvrprksPKzbad local file header: �ruzzipimport: can't read datar�i�)rr}r~rrr�r<r�rr�r�)r"r@�datapathr�r�r�r�r�r�r�r�r�r�r�r��raw_datar�r
r
rr=s>



r=cCst||�dkS)Nr)�abs)�t1�t2r
r
r�	_eq_mtimeAsr�cCs<||d�}zt�|||�}Wntk
r2YdSX|d@dk}|r�|d@dk}tjdkr�|shtjdkr�t||�}	|	dk	r�t�tj|	�}
zt�||
||�Wntk
r�YdSXnTt	||�\}}|�r
t
t|dd��|�r�t|dd	��|k�r
t�
d
|���dSt�|d	d��}
t|
t��s8td|�d���|
S)
N)rErrrrd�never�alwaysrqrlrmzbytecode is stale for zcompiled module z is not a code object)r�
_classify_pycrW�_imp�check_hash_based_pycs�_get_pyc_source�source_hash�_RAW_MAGIC_NUMBER�_validate_hash_pyc�_get_mtime_and_size_of_sourcer�rrXrY�marshal�loadsr�
_code_type�	TypeError)r%r>rIr/r��exc_detailsr��
hash_based�check_source�source_bytesr��source_mtime�source_sizer7r
r
r�_unmarshal_codeKsX�
��
��
���r�cCs|�dd�}|�dd�}|S)Ns
�
�
)r)�sourcer
r
r�_normalize_line_endings~sr�cCst|�}t||ddd�S)NrVT)�dont_inherit)r��compile)r>r�r
r
r�_compile_source�sr�cCsDt�|d?d|d?d@|d@|d?|d?d@|d@dd	d	d	f	�S)
N�	i������?rdr)r��mktime)�dr�r
r
r�_parse_dostime�s



�r�c
Cs`z>|dd�}|j|}|d}|d}|d}t||�|fWStttfk
rZYdSXdS)Nrr���)rr)r!r�r�
IndexErrorr�)r%rr@r�r��uncompressed_sizer
r
rr��s
r�cCsB|dd�}z|j|}Wntk
r0YdSXt|j|�SdS)Nr)r!rr=r")r%rr@r
r
rr��sr�c	Cs�t||�}tD]�\}}}||}tjd|jt|dd�z|j|}Wntk
rXYqX|d}t|j|�}	|r�t	|||||	�}
n
t
||	�}
|
dkr�q|d}|
||fSqtd|��|d��dS)Nz
trying {}{}{}rd)�	verbosityrrCrD)r-rgrXrYr"rr!rr=r�r�r)r%r/rrhrir8rIr@r1r�r7r
r
rr5�s$

r5c@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
r]FcCs||_||_dSr+)rr/)r%rr/r
r
rr*�sz!_ZipImportResourceReader.__init__cCs\|j�dd�}|�d|��}ddlm}z||j�|��WStk
rVt|��YnXdS)Nrcr|r)�BytesIO)r/r�ior�rrAr�FileNotFoundError)r%�resource�fullname_as_pathrr�r
r
r�
open_resource�sz&_ZipImportResourceReader.open_resourcecCst�dSr+)r�)r%r�r
r
r�
resource_path�sz&_ZipImportResourceReader.resource_pathcCsH|j�dd�}|�d|��}z|j�|�Wntk
rBYdSXdS)Nrcr|FT)r/rrrAr)r%rEr�rr
r
r�is_resource�sz$_ZipImportResourceReader.is_resourcec		cs�ddlm}||j�|j��}|�|jj�}|j}t�}|jj	D]f}z||��|�}Wnt
k
rnYq@YnX|jj}t|�dkr�|jVq@||kr@|�
|�|Vq@dS)Nr)�Path)�pathlibr�rrBr/�relative_tor"�parent�setr!rrEr<�add)	r%r��
fullname_path�
relative_path�package_path�subdirs_seen�filename�relative�parent_namer
r
r�contents�s 


z!_ZipImportResourceReader.contentsN)	rrr	r^r*r�r�r�r�r
r
r
rr]�s	r]),�_frozen_importlib_externalrrr�_frozen_importlibrXr�r}r�rMr��__all__r�path_separatorsrrWrr�typerPr�r�r�rrgr-r.r,r r�r�r�r=r�r��__code__r�r�r�r�r�r�r5r]r
r
r
r�<module>sV�		~�.
.



Zerion Mini Shell 1.0