����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
lib64
/
python3.8
/
importlib
/
__pycache__
/
Filename :
metadata.cpython-38.opt-2.pyc
back
Copy
U ����e5d�D������������������� ���@���s���d�dl�Z�d�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dl Z d�dl Z d�dlZd�dlZd�dl Z d�dlmZ�d�dlmZ�d�dlmZ�d�dlmZ�d�dlmZ�ddd d ddd dddg ZG�dd ��d e�ZG�dd��de �dd��ZG�dd��dej�ZG�dd��d�ZG�dd��d�ZG�dd��de�Z G�dd��d�Z!G�dd��d�Z"G�d d!��d!e �Z#G�d"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���e�Zd�ZdS�)r ���N)�__name__� __module__�__qualname__��r���r����*/usr/lib64/python3.8/importlib/metadata.pyr ���%���s���c�������������������@���sR���e�Zd�Ze�d�Zdd��Zedd���Ze dd���Z e dd ���Zd d��Zdd ��Z dS�)� EntryPointzH(?P<module>[\w.]+)\s*(:\s*(?P<attr>[\w.]+)\s*)?((?P<extras>\[.*\])\s*)?$c�����������������C���sD���|�j��|�j�}t|�d��}td�|�d�p,d�d��}t�t ||�S�)N�module�attr���.) �pattern�match�valuer����group�filter�split� functools�reduce�getattr)�selfr���r���Zattrsr���r���r����loadG���s����zEntryPoint.loadc�����������������C���s(���|�j��|�j�}tt�d|�d�p"d��S�)Nz\w+�extrasr���)r���r���r����list�re�finditerr���)r$���r���r���r���r���r&���Q���s����zEntryPoint.extrasc��������������������s������fdd������D��S�)Nc��������������������s,���g�|�]$}���|�D�]\}}��|||��qqS�r�����items)�.0r����namer�����cls�configr���r���� <listcomp>X���s�����z+EntryPoint._from_config.<locals>.<listcomp>)�sectionsr.���r���r.���r����_from_configV���s�����zEntryPoint._from_configc�����������������C���sN���t�dd�}t|_z|�|��W�n$�tk rB���|�t�|���Y�nX�t� |�S�)N�=)Z delimiters) r����strZoptionxformZread_string�AttributeErrorZreadfp�io�StringIOr���r3���)r/����textr0���r���r���r���� _from_text^���s���� zEntryPoint._from_textc�����������������C���s���t�|�j|�f�S��N)�iterr-����r$���r���r���r����__iter__j���s����zEntryPoint.__iter__c�����������������C���s���|�j�|�j|�j|�jffS�r;���)� __class__r-���r���r���r=���r���r���r���� __reduce__p���s�����zEntryPoint.__reduce__N)r���r���r���r(����compiler���r%����propertyr&����classmethodr3���r:���r>���r@���r���r���r���r���r���)���s��� � r���ZEntryPointBasezname value groupc�������������������@���s&���e�Zd�Zd dd�Zdd��Zdd��ZdS�) �PackagePath�utf-8c�������������� ���C���s0���|�����j|d��}|���W��5�Q�R���S�Q�R�X�d�S�)N��encoding��locate�open�read)r$���rG����streamr���r���r���� read_textz���s����zPackagePath.read_textc�������������� ���C���s.���|������d��}|���W��5�Q�R���S�Q�R�X�d�S�)N�rbrH���)r$���rL���r���r���r����read_binary~���s����zPackagePath.read_binaryc�����������������C���s���|�j��|��S�r;���)�dist�locate_filer=���r���r���r���rI�������s����zPackagePath.locateN)rE���)r���r���r���rM���rO���rI���r���r���r���r���rD���w���s��� rD���c�������������������@���s���e�Zd�Zdd��Zdd��ZdS�)�FileHashc�����������������C���s���|��d�\|�_}|�_d�S�)Nr4���)� partition�moder���)r$����spec�_r���r���r����__init__����s����zFileHash.__init__c�����������������C���s���d��|�j|�j�S�)Nz<FileHash mode: {} value: {}>)�formatrT���r���r=���r���r���r����__repr__����s����zFileHash.__repr__N)r���r���r���rW���rY���r���r���r���r���rR�������s���rR���c�������������������@���s����e�Zd�Zejdd���Zejdd���Zedd���Zedd���Z e d d ���Ze dd���Ze d d���Ze dd���Ze dd���Ze dd���Zdd��Zdd��Ze dd���Zdd��Zdd��Zedd ���Ze d!d"���Ze d#d$���Zd%S�)&r���c�����������������C���s���d�S�r;���r����r$����filenamer���r���r���rM�������s����zDistribution.read_textc�����������������C���s���d�S�r;���r����r$����pathr���r���r���rQ�������s����zDistribution.locate_filec�����������������C���sD���|�����D�].}|tj|d��}t|d��}|d�k r|��S�qt|��d�S�)N�r-���)�_discover_resolversr����Context�nextr ���)r/���r-����resolverZdistsrP���r���r���r���� from_name����s���� zDistribution.from_namec��������������������sJ���|��dd������r|rtd����p*tjf�|���tj���fdd�|����D���S�)N�contextz cannot accept context and kwargsc�����������������3���s���|�]}|���V��qd�S�r;���r���)r,���rb����rd���r���r���� <genexpr>����s����z(Distribution.discover.<locals>.<genexpr>)�pop� ValueErrorr���r`���� itertools�chain� from_iterabler_���)r/����kwargsr���re���r����discover����s���� �zDistribution.discoverc�����������������C���s���t�t�|���S�r;���)�PathDistribution�pathlib�Path)r]���r���r���r����at����s����zDistribution.atc������������������C���s���dd��t�jD��}�td�|��S�)Nc�����������������s���s���|�]}t�|d�d�V��qdS�)�find_distributionsN)r#���)r,����finderr���r���r���rf�������s����z3Distribution._discover_resolvers.<locals>.<genexpr>)�sys� meta_pathr���)Zdeclaredr���r���r���r_�������s�����z Distribution._discover_resolversc�����������������C���s(���|���d�p|���d�p|���d�}t�|�S�)NZMETADATAzPKG-INFOr���)rM����emailZmessage_from_string�r$���r9���r���r���r���r�������s���� ��zDistribution.metadatac�����������������C���s ���|�j�d�S�)NZVersion)r���r=���r���r���r���r�������s����zDistribution.versionc�����������������C���s���t��|��d��S�)Nzentry_points.txt)r���r:���rM���r=���r���r���r���r�������s����zDistribution.entry_pointsc��������������������s6���������p�����}d��fdd� }|o4tt|t�|���S�)Nc��������������������s6���t�|��}|rt|�nd�|_|r&t|�nd�|_��|_|S�r;���)rD���rR����hash�int�sizerP���)r-���rx���Zsize_str�resultr=���r���r���� make_file����s ����z%Distribution.files.<locals>.make_file)NN)�_read_files_distinfo�_read_files_egginfor'���r����csv�reader)r$���Z file_linesr|���r���r=���r���r �������s����zDistribution.filesc�����������������C���s���|���d�}|o|���S�)NZRECORD)rM���� splitlinesrw���r���r���r���r}�����s���� z!Distribution._read_files_distinfoc�����������������C���s���|���d�}|otdj|����S�)NzSOURCES.txtz"{}")rM����maprX���r����rw���r���r���r���r~�����s���� z Distribution._read_files_egginfoc�����������������C���s���|�����p|����}|ot|�S�r;���)�_read_dist_info_reqs�_read_egg_info_reqsr'���)r$���Zreqsr���r���r���r�����s����zDistribution.requiresc�����������������C���s���|�j��d�S�)Nz Requires-Dist)r���Zget_allr=���r���r���r���r������s����z!Distribution._read_dist_info_reqsc�����������������C���s���|���d�}|o|��|�S�)Nzrequires.txt)rM����_deps_from_requires_text)r$����sourcer���r���r���r���� ��s���� z Distribution._read_egg_info_reqsc�����������������C���s4���|���|����}dd��t�|t�d��D��}|��|�S�)Nc�����������������S���s&���i�|�]\}}|t�tt�d��|���qS�)�line)r'���r�����operator� itemgetter)r,����sectionZresultsr���r���r���� <dictcomp>'��s�����z9Distribution._deps_from_requires_text.<locals>.<dictcomp>r����)�_read_sectionsr����ri����groupbyr����r�����%_convert_egg_info_reqs_to_simple_reqs)r/���r����Z section_pairsr2���r���r���r���r����$��s �����z%Distribution._deps_from_requires_textc�����������������c���s<���d�}t�d�|��D�](}t�d|�}|r.|�d�}qt��V��qd�S�)Nz \[(.*)\]$����)r���r(���r���r����locals)�linesr����r����Z section_matchr���r���r���r����.��s���� zDistribution._read_sectionsc�����������������#���sB���dd������fdd�}|�����D�] \}}|D�]}|||��V��q(qd�S�)Nc�����������������S���s���|�odj�|�d�S�)Nzextra == "{name}"r^���)rX���r^���r���r���r����make_conditionC��s����zJDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.make_conditionc��������������������sX���|�pd}�|���d�\}}}|r,|r,dj|d�}ttd�|��|�g��}|rTdd�|��S�dS�)Nr����:z({markers}))�markersz; z and )rS���rX���r'���r����join)r����Zextra�sepr����Z conditions�r����r���r����parse_conditionF��s����zKDistribution._convert_egg_info_reqs_to_simple_reqs.<locals>.parse_conditionr*���)r2���r����r����ZdepsZdepr���r����r���r����8��s ����z2Distribution._convert_egg_info_reqs_to_simple_reqsN)r���r���r����abc�abstractmethodrM���rQ���rC���rc���rm����staticmethodrq���r_���rB���r���r���r���r ���r}���r~���r���r����r����r����r����r����r���r���r���r���r�������s@��� c�������������������@���s.���e�Zd�ZG�dd��d�Zeje��fdd��ZdS�)r���c�������������������@���s$���e�Zd�ZdZdd��Zedd���ZdS�)zDistributionFinder.ContextNc�����������������K���s���t�|���|��d�S�r;���)�vars�update)r$���rl���r���r���r���rW���j��s����z#DistributionFinder.Context.__init__c�����������������C���s���t�|���dtj�S�)Nr]���)r�����getrt���r]���r=���r���r���r���r]���m��s����zDistributionFinder.Context.path)r���r���r���r-���rW���rB���r]���r���r���r���r���r`���X��s���r`���c�����������������C���s���d�S�r;���r���)r$���rd���r���r���r���rr���w��s����z%DistributionFinder.find_distributionsN)r���r���r���r`���r����r����rr���r���r���r���r���r���S��s���c�������������������@���s<���e�Zd�Zdd��Zdd��Zdd��Zdd��Zd d ��Zdd��Zd S�)�FastPathc�����������������C���s���||�_�tj�|����|�_d�S�r;���)�root�osr]����basename�lower�base)r$���r����r���r���r���rW������s����zFastPath.__init__c�����������������C���s���t��|�j|�S�r;���)ro���rp���r����)r$����childr���r���r����joinpath���s����zFastPath.joinpathc�������������� ���C���sT���t�t���t�|�jpd�W��5�Q�R���S�Q�R�X�t�t���|����W��5�Q�R���S�Q�R�X�g�S�)Nr���)r���� Exceptionr�����listdirr�����zip_childrenr=���r���r���r����children���s ���� " zFastPath.childrenc�����������������C���s2���t��|�j�}|j���}|j|�_t�dd��|D���S�)Nc�����������������s���s ���|�]}|��tjd��d�V��qdS�)r����r���N)r ���� posixpathr����)r,���r����r���r���r���rf������s����z(FastPath.zip_children.<locals>.<genexpr>)�zipfilerp���r����Znamelistr�����dict�fromkeys)r$���Zzip_path�namesr���r���r���r�������s���� �zFastPath.zip_childrenc�����������������C���s&���|�j�}||jkp$|�|j�o$|�d�S�)N�.egg)r�����versionless_egg_name� startswith�prefix�endswith)r$����searchr����r���r���r����is_egg���s ���� �zFastPath.is_eggc�����������������c���sZ���|�����D�]L}|���}||jksH|�|j�r6|�|j�sH|��|�r|dkr|��|�V��qd�S�)Nzegg-info) r����r����� exact_matchesr����r����r�����suffixesr����r����)r$���r-���r����Zn_lowr���r���r���r�������s���� � ���zFastPath.searchN) r���r���r���rW���r����r����r����r����r����r���r���r���r���r�������s��� r����c�������������������@���s2���e�Zd�ZdZdZdZdgdd��ZdZdd��ZdS�)�Preparedr���)z .dist-infoz .egg-infoNr���c��������������������sV���|��_�|d�krd�S�|����dd���_��jd���_��fdd���jD����_��jd���_d�S�)N�-rV���c��������������������s���g�|�]}��j�|��qS�r���)� normalized)r,����suffixr=���r���r���r1������s����z%Prepared.__init__.<locals>.<listcomp>r����)r-���r�����replacer����r����r����r����r����)r$���r-���r���r=���r���rW������s���� �zPrepared.__init__) r���r���r���r����r����r����r����r����rW���r���r���r���r���r�������s���r����c�������������������@���s,���e�Zd�Zee���fdd��Zedd���ZdS�)�MetadataPathFinderc�����������������C���s���|���|j|j�}tt|�S�r;���)� _search_pathsr-���r]���r����rn���)r/���rd����foundr���r���r���rr������s���� z%MetadataPathFinder.find_distributionsc��������������������s ���t�j���fdd�tt|�D���S�)Nc�����������������3���s���|�]}|��t����V��qd�S�r;���)r����r����)r,���r]���r^���r���r���rf������s����z3MetadataPathFinder._search_paths.<locals>.<genexpr>)ri���rj���rk���r����r����)r/���r-����pathsr���r^���r���r�������s�����z MetadataPathFinder._search_pathsN)r���r���r���rC���r���r`���rr���r����r���r���r���r���r�������s���r����c�������������������@���s.���e�Zd�Zdd��Zdd��Zejje_dd��ZdS�)rn���c�����������������C���s ���||�_�d�S�r;���)�_pathr\���r���r���r���rW������s����zPathDistribution.__init__c�������������� ���C���s<���t�ttttt��"�|�j�|�jdd�W��5�Q�R���S�Q�R�X�d�S�)NrE���rF���) r����FileNotFoundError�IsADirectoryError�KeyError�NotADirectoryError�PermissionErrorr����r����rM���rZ���r���r���r���rM������s ������zPathDistribution.read_textc�����������������C���s���|�j�j|�S�r;���)r�����parentr\���r���r���r���rQ������s����zPathDistribution.locate_fileN)r���r���r���rW���rM���r����__doc__rQ���r���r���r���r���rn������s��� rn���c�����������������C���s ���t��|��S�r;���)r���rc����Zdistribution_namer���r���r���r ������s����c������������������K���s���t�jf�|��S�r;���)r���rm���)rl���r���r���r���r������s����c�����������������C���s���t��|��jS�r;���)r���rc���r���r����r���r���r���r�����s����c�����������������C���s ���t�|��jS�r;���)r ���r���r����r���r���r���r�����s����c������������������C���sH���t�j�dd��t��D���}�t�d�}t|�|d�}t��||�}dd��|D��S�)Nc�����������������s���s���|�]}|j�V��qd�S�r;���)r���)r,���rP���r���r���r���rf�����s����zentry_points.<locals>.<genexpr>r���)�keyc�����������������S���s���i�|�]\}}|t�|��qS�r���)�tuple)r,���r����epsr���r���r���r������s�����z entry_points.<locals>.<dictcomp>)ri���rj���rk���r���r����� attrgetter�sortedr����)r����Zby_groupZorderedZgroupedr���r���r���r�����s����� �c�����������������C���s ���t�|��jS�r;���)r ���r ���r����r���r���r���r ���%��s����c�����������������C���s ���t�|��jS�r;���)r ���r���r����r���r���r���r���.��s����),r7���r����r(���r����r���rt���rv���ro���r����r����r!���ri���r�����collectionsZconfigparserr���� contextlibr���� importlibr���� importlib.abcr���r����__all__�ModuleNotFoundErrorr ���� namedtupler���Z PurePosixPathrD���rR���r���r���r����r����r����rn���r ���r���r���r���r���r ���r���r���r���r���r����<module>���sb���� �N�E/0