Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python38/lib64/python3.8/importlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python38/lib64/python3.8/importlib/__pycache__/metadata.cpython-38.opt-2.pyc
U

��,a�D�
@s�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlmZddlmZddlmZddlmZddlmZddd	d
ddd
dddg
ZGdd	�d	e�ZGdd�de
�dd��ZGdd�dej�ZGdd�d�ZGdd�d�ZGdd�de�Z Gdd�d�Z!Gdd�d�Z"Gd d!�d!e �Z#Gd"d#�d#e�Z$d$d
�Z%d%d�Z&d&d�Z'd'd�Z(d(d�Z)d)d
�Z*d*d�Z+dS)+�N)�ConfigParser)�suppress)�
import_module)�MetaPathFinder)�starmap�Distribution�DistributionFinder�PackageNotFoundError�distribution�
distributions�entry_points�files�metadata�requires�versionc@seZdZdS)r	N)�__name__�
__module__�__qualname__�rr�7/opt/alt/python38/lib64/python3.8/importlib/metadata.pyr	%sc@sReZdZe�d�Zdd�Zedd��Ze	dd��Z
e	dd	��Zd
d�Zdd
�Z
dS)�
EntryPointzF(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+))?\s*(?P<extras>\[.*\])?\s*$cCsD|j�|j�}t|�d��}td|�d�p,d�d��}t�t	||�S)N�module�attr��.)
�pattern�match�valuer�group�filter�split�	functools�reduce�getattr)�selfrr�attrsrrr�loadGszEntryPoint.loadcCs(|j�|j�}tt�d|�d�p"d��S)Nz\w+�extrasr)rrr�list�re�finditerr)r$rrrrr'QszEntryPoint.extrascs��fdd����D�S)Ncs,g|]$}��|�D]\}}�|||��qqSr��items)�.0r�namer��cls�configrr�
<listcomp>Xs�z+EntryPoint._from_config.<locals>.<listcomp>)�sectionsr/rr/r�_from_configVs�zEntryPoint._from_configcCsNtdd�}t|_z|�|�Wn$tk
rB|�t�|��YnXt�	|�S)N�=)Z
delimiters)
r�strZoptionxformZread_string�AttributeErrorZreadfp�io�StringIOrr4)r0�textr1rrr�
_from_text^s
zEntryPoint._from_textcCst|j|f�S�N)�iterr.�r$rrr�__iter__jszEntryPoint.__iter__cCs|j|j|j|jffSr<)�	__class__r.rrr>rrr�
__reduce__ps�zEntryPoint.__reduce__N)rrrr)�compilerr&�propertyr'�classmethodr4r;r?rArrrrr)s	�



rZEntryPointBasezname value groupc@s&eZdZd	dd�Zdd�Zdd�ZdS)
�PackagePath�utf-8c
Cs0|��j|d��}|��W5QR�SQRXdS)N��encoding��locate�open�read)r$rH�streamrrr�	read_textzszPackagePath.read_textc
Cs.|���d��}|��W5QR�SQRXdS)N�rbrI)r$rMrrr�read_binary~szPackagePath.read_binarycCs|j�|�Sr<)�dist�locate_filer>rrrrJ�szPackagePath.locateN)rF)rrrrNrPrJrrrrrEws
rEc@seZdZdd�Zdd�ZdS)�FileHashcCs|�d�\|_}|_dS)Nr5)�	partition�moder)r$�spec�_rrr�__init__�szFileHash.__init__cCsd�|j|j�S)Nz<FileHash mode: {} value: {}>)�formatrUrr>rrr�__repr__�szFileHash.__repr__N)rrrrXrZrrrrrS�srSc@s�eZdZejdd��Zejdd��Zedd��Zedd��Z	e
d	d
��Ze
dd��Ze
d
d��Ze
dd��Ze
dd��Ze
dd��Zdd�Zdd�Ze
dd��Zdd�Zdd�Zedd ��Ze
d!d"��Ze
d#d$��Zd%S)&rcCsdSr<r�r$�filenamerrrrN�szDistribution.read_textcCsdSr<r�r$�pathrrrrR�szDistribution.locate_filecCsD|��D].}|tj|d��}t|d�}|dk	r|Sqt|��dS)N�r.)�_discover_resolversr�Context�nextr	)r0r.�resolverZdistsrQrrr�	from_name�s


zDistribution.from_namecsJ|�dd���r|rtd���p*tjf|��tj��fdd�|��D��S)N�contextz cannot accept context and kwargsc3s|]}|��VqdSr<r)r-rc�rerr�	<genexpr>�s�z(Distribution.discover.<locals>.<genexpr>)�pop�
ValueErrorrra�	itertools�chain�
from_iterabler`)r0�kwargsrrfr�discover�s
�zDistribution.discovercCstt�|��Sr<)�PathDistribution�pathlib�Path)r^rrr�at�szDistribution.atcCsdd�tjD�}td|�S)Ncss|]}t|dd�VqdS)�find_distributionsN)r#)r-�finderrrrrg�s�z3Distribution._discover_resolvers.<locals>.<genexpr>)�sys�	meta_pathr)Zdeclaredrrrr`�s�z Distribution._discover_resolverscCs(|�d�p|�d�p|�d�}t�|�S)NZMETADATAzPKG-INFOr)rN�emailZmessage_from_string�r$r:rrrr�s
��zDistribution.metadatacCs
|jdS)NZVersion)rr>rrrr�szDistribution.versioncCst�|�d��S)Nzentry_points.txt)rr;rNr>rrrr�szDistribution.entry_pointscs6���p���}d�fdd�	}|o4tt|t�|���S)Ncs6t|�}|rt|�nd|_|r&t|�nd|_�|_|Sr<)rErS�hash�int�sizerQ)r.ryZsize_str�resultr>rr�	make_file�s
z%Distribution.files.<locals>.make_file)NN)�_read_files_distinfo�_read_files_egginfor(r�csv�reader)r$Z
file_linesr}rr>rr
�szDistribution.filescCs|�d�}|o|��S)NZRECORD)rN�
splitlinesrxrrrr~s
z!Distribution._read_files_distinfocCs|�d�}|otdj|���S)NzSOURCES.txtz"{}")rN�maprYr�rxrrrrs
z Distribution._read_files_egginfocCs|��p|��}|ot|�Sr<)�_read_dist_info_reqs�_read_egg_info_reqsr()r$ZreqsrrrrszDistribution.requirescCs|j�d�S)Nz
Requires-Dist)rZget_allr>rrrr�sz!Distribution._read_dist_info_reqscCs|�d�}|o|�|�S)Nzrequires.txt)rN�_deps_from_requires_text)r$�sourcerrrr� s
z Distribution._read_egg_info_reqscCs4|�|���}dd�t�|t�d��D�}|�|�S)NcSs&i|]\}}|ttt�d�|���qS)�line)r(r��operator�
itemgetter)r-�sectionZresultsrrr�
<dictcomp>'s�z9Distribution._deps_from_requires_text.<locals>.<dictcomp>r�)�_read_sectionsr�rj�groupbyr�r��%_convert_egg_info_reqs_to_simple_reqs)r0r�Z
section_pairsr3rrrr�$s
�z%Distribution._deps_from_requires_textccs<d}td|�D](}t�d|�}|r.|�d�}qt�VqdS)Nz	\[(.*)\]$�)rr)rr�locals)�linesr�r�Z
section_matchrrrr�.s
zDistribution._read_sectionsc#sBdd���fdd�}|��D] \}}|D]}|||�Vq(qdS)NcSs|odj|d�S)Nzextra == "{name}"r_)rYr_rrr�make_conditionCszJDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.make_conditioncsX|pd}|�d�\}}}|r,|r,dj|d�}ttd|�|�g��}|rTdd�|�SdS)Nr�:z({markers}))�markersz; z and )rTrYr(r�join)r�Zextra�sepr�Z
conditions�r�rr�parse_conditionFszKDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.parse_conditionr+)r3r�r�ZdepsZdeprr�rr�8s
z2Distribution._convert_egg_info_reqs_to_simple_reqsN)rrr�abc�abstractmethodrNrRrDrdrn�staticmethodrrr`rCrrrr
r~rrr�r�r�r�r�rrrrr�s@











	
	c@s.eZdZGdd�d�Zeje�fdd��ZdS)rc@s$eZdZdZdd�Zedd��ZdS)zDistributionFinder.ContextNcKst|��|�dSr<)�vars�update)r$rmrrrrXjsz#DistributionFinder.Context.__init__cCst|��dtj�S)Nr^)r��getrur^r>rrrr^mszDistributionFinder.Context.path)rrrr.rXrCr^rrrrraXsracCsdSr<r)r$rerrrrswsz%DistributionFinder.find_distributionsN)rrrrar�r�rsrrrrrSsc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�FastPathcCs||_tj�|���|_dSr<)�root�osr^�basename�lower�base)r$r�rrrrX�szFastPath.__init__cCst�|j|�Sr<)rprqr�)r$�childrrr�joinpath�szFastPath.joinpathc
CsTtt��t�|jpd�W5QR�SQRXtt��|��W5QR�SQRXgS)Nr)r�	Exceptionr��listdirr��zip_childrenr>rrr�children�s

"
zFastPath.childrencCs2t�|j�}|j��}|j|_t�dd�|D��S)Ncss |]}|�tjd�dVqdS)r�rN)r �	posixpathr�)r-r�rrrrg�s�z(FastPath.zip_children.<locals>.<genexpr>)�zipfilerqr�Znamelistr��dict�fromkeys)r$Zzip_path�namesrrrr��s

�zFastPath.zip_childrencCs&|j}||jkp$|�|j�o$|�d�S)N�.egg)r��versionless_egg_name�
startswith�prefix�endswith)r$�searchr�rrr�is_egg�s

�zFastPath.is_eggccsZ|��D]L}|��}||jksH|�|j�r6|�|j�sH|�|�r|dkr|�|�VqdS)Nzegg-info)	r�r��
exact_matchesr�r�r��suffixesr�r�)r$r.r�Zn_lowrrrr��s

�
���zFastPath.searchN)	rrrrXr�r�r�r�r�rrrrr��s
r�c@s2eZdZdZdZdZdgdd�ZdZdd�ZdS)�Preparedr)z
.dist-infoz	.egg-infoNrcsV|�_|dkrdS|���dd��_�jd�_�fdd��jD��_�jd�_dS)N�-rWcsg|]}�j|�qSr)�
normalized)r-�suffixr>rrr2�sz%Prepared.__init__.<locals>.<listcomp>r�)r.r��replacer�r�r�r�r�)r$r.rr>rrX�s
�zPrepared.__init__)	rrrr�r�r�r�r�rXrrrrr��sr�c@s,eZdZee��fdd��Zedd��ZdS)�MetadataPathFindercCs|�|j|j�}tt|�Sr<)�
_search_pathsr.r^r�ro)r0re�foundrrrrs�s
z%MetadataPathFinder.find_distributionscs tj��fdd�tt|�D��S)Nc3s|]}|�t���VqdSr<)r�r�)r-r^r_rrrg�s�z3MetadataPathFinder._search_paths.<locals>.<genexpr>)rjrkrlr�r�)r0r.�pathsrr_rr��s�z MetadataPathFinder._search_pathsN)rrrrDrrarsr�rrrrr��sr�c@s.eZdZdd�Zdd�Zejje_dd�ZdS)rocCs
||_dSr<)�_pathr]rrrrX�szPathDistribution.__init__c
Cs<tttttt��"|j�|�jdd�W5QR�SQRXdS)NrFrG)	r�FileNotFoundError�IsADirectoryError�KeyError�NotADirectoryError�PermissionErrorr�r�rNr[rrrrN�s
�zPathDistribution.read_textcCs|jj|Sr<)r��parentr]rrrrR�szPathDistribution.locate_fileN)rrrrXrNr�__doc__rRrrrrro�s
rocCs
t�|�Sr<)rrd�Zdistribution_namerrrr
�scKstjf|�Sr<)rrn)rmrrrr�scCst�|�jSr<)rrdrr�rrrrscCs
t|�jSr<)r
rr�rrrrscCsHtj�dd�t�D��}t�d�}t||d�}t�||�}dd�|D�S)Ncss|]}|jVqdSr<)r)r-rQrrrrgszentry_points.<locals>.<genexpr>r)�keycSsi|]\}}|t|��qSr)�tuple)r-r�epsrrrr�s�z entry_points.<locals>.<dictcomp>)rjrkrlrr��
attrgetter�sortedr�)r�Zby_groupZorderedZgroupedrrrrs�
�cCs
t|�jSr<)r
r
r�rrrr
%scCs
t|�jSr<)r
rr�rrrr.s),r8r�r)r�r�rurwrpr�r�r!rjr��collectionsZconfigparserr�
contextlibr�	importlibr�
importlib.abcrr�__all__�ModuleNotFoundErrorr	�
namedtuplerZ
PurePosixPathrErSrrr�r�r�ror
rrrrr
rrrrr�<module>sb�

�NE/0		
	

ZeroDay Forums Mini