Your IP : 18.227.140.251


Current Path : /opt/alt/python310/lib64/python3.10/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/importlib/metadata/__pycache__/_adapters.cpython-310.opt-1.pyc

o

6��fF�@s<ddlZddlZddlZddlmZGdd�dejj�ZdS)�N�)�
FoldedCasecsbeZdZeeegd���Z	dejj	f�fdd�Z
dd�Z�fdd�Zd	d
�Z
edd��Z�ZS)
�Message)
Z
ClassifierzObsoletes-DistZPlatformzProject-URLz
Provides-DistzProvides-Extraz
Requires-DistzRequires-ExternalzSupported-PlatformZDynamic�origcs"t��|�}t|��t|��|S�N)�super�__new__�vars�update)�clsr�res��	__class__��C/opt/alt/python310/lib64/python3.10/importlib/metadata/_adapters.pyrszMessage.__new__cOs|��|_dSr)�_repair_headers�_headers)�self�args�kwargsrrr�__init__#szMessage.__init__cs
t���Sr)r�__iter__�rr
rrr's
zMessage.__iter__cs>dd���fdd�t|�dD�}|jr|�d|��f�|S)NcSs|rd|vr|St�d|�S)zCorrect for RFC822 indentation�
z        )�textwrap�dedent)�valuerrr�redent+sz'Message._repair_headers.<locals>.redentcsg|]
\}}|�|�f�qSrr)�.0�keyr�rrr�
<listcomp>1sz+Message._repair_headers.<locals>.<listcomp>rZDescription)r	Z_payload�appendZget_payload)rZheadersrr rr*s
zMessage._repair_headerscs �fdd�}tt|tt����S)z[
        Convert PackageMetadata to a JSON-compatible format
        per PEP 0566.
        csH|�jvr
��|�n�|}|dkrt�d|�}|���dd�}||fS)NZKeywordsz\s+�-�_)�multiple_use_keysZget_all�re�split�lower�replace)rrZtkrrr�	transform=s
zMessage.json.<locals>.transform)�dict�mapr)rr*rrr�json6szMessage.json)�__name__�
__module__�__qualname__�setr,rr%�email�messagerrrrr�propertyr-�
__classcell__rrr
rrs��r)r&rZ
email.messager2Z_textrr3rrrrr�<module>s


?>