Your IP : 18.217.228.195


Current Path : /opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/importlib/metadata/__pycache__/_adapters.cpython-312.opt-1.pyc

�

�Q�ff	���ddlZddlZddlZddlZddlZddlmZejejde
d��ZGd�dejj�Z
y)	�N�)�
FoldedCasezFImplicit None on return values is deprecated and will raise KeyErrors.�)�
stacklevelc���eZdZeeegd���Z	dejjf�fd�Z
d�Z�fd�Z�fd�Z
d�Zed��Z�xZS)	�Message)
�
ClassifierzObsoletes-Dist�PlatformzProject-URLz
Provides-DistzProvides-Extraz
Requires-DistzRequires-ExternalzSupported-Platform�Dynamic�origc�l��t�|�|�}t|�jt|��|S�N)�super�__new__�vars�update)�clsr�res�	__class__s   ��C/opt/alt/python312/lib64/python3.12/importlib/metadata/_adapters.pyrzMessage.__new__)s,����g�o�c�"���S�	����d��$��
�c�.�|j�|_yr)�_repair_headers�_headers)�self�args�kwargss   r�__init__zMessage.__init__.s���,�,�.��
rc� ��t�|��Sr)r�__iter__)rrs �rr zMessage.__iter__2s����w��!�!rc�>��t�|�|�}|�
t�|S)z�
        Warn users that a ``KeyError`` can be expected when a
        mising key is supplied. Ref python/importlib_metadata#371.
        )r�__getitem__�_warn)r�itemrrs   �rr"zMessage.__getitem__5s#���
�g�!�$�'���;��G��
rc���d�}t|�dD��cgc]\}}|||�f��}}}|jr!|jd|j�f�|Scc}}w)Nc�B�|rd|vr|Stjd|z�S)zCorrect for RFC822 indentation�
z        )�textwrap�dedent)�values r�redentz'Message._repair_headers.<locals>.redent@s$���D��-����?�?�7�U�?�3�3rr�Description)r�_payload�append�get_payload)rr+�keyr*�headerss     rrzMessage._repair_headers?sa��	4�;?�t�*�Z�:P�Q�:P�J�C��C����'�:P��Q��=�=��N�N�M�4�+;�+;�+=�>�?����Rs�Ac	�T���fd�}tt|tt����S)z[
        Convert PackageMetadata to a JSON-compatible format
        per PEP 0566.
        c����|�jvr�j|�n�|}|dk(rtjd|�}|j	�jdd�}||fS)N�Keywordsz\s+�-�_)�multiple_use_keys�get_all�re�split�lower�replace)r0r*�tkrs   �r�	transformzMessage.json.<locals>.transformRs_���),��0F�0F�)F�D�L�L��%�D�QT�I�E��j� ������/������$�$�S�#�.�B��u�9�r)�dict�mapr)rr>s` r�jsonzMessage.jsonKs#���	��C�	�3�z�4�#8�9�:�:r)�__name__�
__module__�__qualname__�setr@rr7�email�messagerrrr r"r�propertyrA�
__classcell__)rs@rrrsa������
�	
���"��5�=�=�0�0��
/�"��
��
;��
;rr)�	functools�warningsr9r(�
email.messagerF�_textr�partial�warn�DeprecationWarningr#rGr�rr�<module>rRsS����	����	�	����M�M�L���		��F;�e�m�m�#�#�F;r

?>