AlkantarClanX12

Your IP : 18.219.207.11


Current Path : /opt/alt/python312/lib64/python3.12/email/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/email/__pycache__/policy.cpython-312.opt-2.pyc

�

�Q�fv)��N�	ddlZddlZddlmZmZmZmZddlmZddl	m
Z
ddlmZddl
mZgd�Zej d�ZeGd	�d
e��Ze�Ze`ej+d��Zej+d
��Zej+d
d��Zej+d��Zy)�N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_manager)�EmailMessage)rrr�EmailPolicy�default�strict�SMTP�HTTPz\n|\r\n?c�j��eZdZ	eZdZdZe�Ze	Z
�fd�Zd�Zd�Z
d�Zd�Zd�Zd	�Zdd
�Z�xZS)rF�longc�j��d|vrtj|dt��t�|�di|��y)N�header_factory�)�object�__setattr__r�super�__init__)�self�kw�	__class__s  ��3/opt/alt/python312/lib64/python3.12/email/policy.pyrzEmailPolicy.__init__]s3����2�%����t�%5�~�7G�H�
����2��c�6�	|j|jS�N)r�	max_count)r�names  r�header_max_countzEmailPolicy.header_max_countds ��	�
�"�"�4�(�2�2�2rc��	|djdd�\}}|jd�dj|dd�z}||jd�fS)Nr�:�z 	��
)�split�lstrip�join�rstrip)r�sourcelinesr!�values    r�header_source_parsezEmailPolicy.header_source_parsevsY��	�"�!�n�*�*�3��2���e����U�#�b�g�g�k�!�"�o�&>�>���e�l�l�6�*�+�+rc��	t|d�r/|jj�|j�k(r||fSt|t�r't|j
��dkDrtd��||j||�fS)Nr!r%zDHeader values may not contain linefeed or carriage return characters)	�hasattrr!�lower�
isinstance�str�len�
splitlines�
ValueErrorr�rr!r-s   r�header_store_parsezEmailPolicy.header_store_parse�s���	��5�&�!�e�j�j�&6�&6�&8�D�J�J�L�&H��%�=� ��e�S�!�c�%�*:�*:�*<�&=�a�&?��=�>�
>��d�)�)�$��6�7�7rc��	t|d�r|Sdjtj|��}|j	||�S)Nr!r&)r0r*�linesep_splitterr(rr7s   r�header_fetch_parsezEmailPolicy.header_fetch_parse�sE��	��5�&�!��L����(�.�.�u�5�6���"�"�4��/�/rc�,�	|j||d��S)NT��
refold_binary)�_foldr7s   r�foldzEmailPolicy.fold�s��	�$�z�z�$��T�z�:�:rc��	|j|||jdk(��}|jrdnd}|j|d�S)N�7bitr=�utf8�ascii�surrogateescape)r?�cte_typerC�encode)rr!r-�folded�charsets     r�fold_binaryzEmailPolicy.fold_binary�sE��	����D�%�t�}�}�f�7L��M�� �I�I�&�7���}�}�W�&7�8�8rc���t|d�r|j|��S|jr|jntj�t
j
|�}|jdk(xsN|jdk(xr=|xr t|d�t|�zdz�kDxst�fd�|ddD��}|s+|js|j�}n
|rt|�}|r1|j|d	j|��j|��S|d
z|jj|�z|jzS)Nr!)�policy�allrr�c3�:�K�|]}t|��kD���y�wr)r4)�.0�x�maxlens  �r�	<genexpr>z$EmailPolicy._fold.<locals>.<genexpr>�s�����<�)�Q��Q��&��)�s�r%r&z: )r0r@�max_line_length�sys�maxsizer:r(�
refold_sourcer4�anyrC�isasciirrr*�linesep)rr!r-r>�lines�refoldrRs      @rr?zEmailPolicy._fold�s(����5�&�!��:�:�T�:�*�*�)-�)=�)=��%�%�3�;�;�� �&�&�u�-���$�$��-�>��$�$��.�>��A�s�5��8�}�S��Y�6�q�8�6�A�=��<�%���)�<�<�	�
��9�9�"�]�]�_�,���(��/����&�&�t�R�W�W�U�^�<�A�A��A�N�N��d�{�T�\�\�.�.�u�5�5����D�Dr)F)�__name__�
__module__�__qualname__r
�message_factoryrCrWrrr	�content_managerrr"r.r8r;r@rJr?�
__classcell__)rs@rrrsP���8�t#�O��D��M�#�%�N�&�O��3�$,�8�&
0�;�*9�$ErrT)�raise_on_defectr')rZ)rZrT)rC)�rerU�email._policybaserrrr�email.utilsr�email.headerregistryr�email.contentmanagerr	�
email.messager
�__all__�compiler:rrr�cloner
rr�SMTPUTF8rrr�<module>rns����
�
�L�L�'�A�1�&�	���2�:�:�k�*���DE�&�DE��DE�N�-����	���t��	,���}�}�V�}�$���}�}�V�T�}�:���:�:�4�:� �r