AlkantarClanX12

Your IP : 3.138.181.90


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/email/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/email/__pycache__/policy.cpython-311.opt-2.pyc

�

c��f)��~�	ddlZddlZddlmZmZmZmZddlmZddl	m
Z
ddlmZddl
mZgd�Zejd��ZeGd	�d
e����Ze��Ze`e�d���Ze�d
���Ze�d
d���Ze�d���ZdS)�N)�Policy�Compat32�compat32�_extend_docstrings)�_has_surrogates)�HeaderRegistry)�raw_data_manager)�EmailMessage)rrr�EmailPolicy�default�strict�SMTP�HTTPz\n|\rc�p��eZdZ	eZdZdZe��Ze	Z
�fd�Zd�Zd�Z
d�Zd�Zd�Zd	�Zdd
�Z�xZS)rF�longc���d|vr(t�|dt����t��jdi|��dS)N�header_factory�)�object�__setattr__r�super�__init__)�self�kw�	__class__s  ��3/opt/alt/python311/lib64/python3.11/email/policy.pyrzEmailPolicy.__init__]sR����2�%�%����t�%5�~�7G�7G�H�H�H��������2������c�(�	|j|jS�N)r�	max_count)r�names  r�header_max_countzEmailPolicy.header_max_countds��	�
�"�4�(�2�2rc���	|d�dd��\}}|�d��d�|dd���z}||�d��fS)Nr�:�z 	��
)�split�lstrip�join�rstrip)r�sourcelinesr!�values    r�header_source_parsezEmailPolicy.header_source_parsevsg��	�"�!�n�*�*�3��2�2���e����U�#�#�b�g�g�k�!�"�"�o�&>�&>�>���e�l�l�6�*�*�+�+rc�L�	t|d��r3|j���|���kr||fSt|t��r4t|�����dkrtd���||�||��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�&6�&6�&8�&8�D�J�J�L�L�&H�&H��%�=� ��e�S�!�!�	>�c�%�*:�*:�*<�*<�&=�&=�a�&?�&?��=�>�>�
>��d�)�)�$��6�6�7�7rc��	t|d��r|Sd�t�|����}|�||��S)Nr!r&)r0r*�linesep_splitterr(rr7s   r�header_fetch_parsezEmailPolicy.header_fetch_parse�sV��	��5�&�!�!�	��L����(�.�.�u�5�5�6�6���"�"�4��/�/�/rc�4�	|�||d���S)NT��
refold_binary)�_foldr7s   r�foldzEmailPolicy.fold�s!��	�$�z�z�$��T�z�:�:�:rc��	|�|||jdk���}|jrdnd}|�|d��S)N�7bitr=�utf8�ascii�surrogateescape)r?�cte_typerC�encode)rr!r-�folded�charsets     r�fold_binaryzEmailPolicy.fold_binary�sL��	����D�%�t�}�f�7L��M�M�� �I�2�&�&�7���}�}�W�&7�8�8�8rc���t|d��r|�|���S|jr|jntj�|���}|jdkp[|jdkoP|r,t|d��t|��zdz�kp"t�fd�|dd�D����}|s.|j	s|�
��}n|rt|��}|r=|�|d	�
|�����|���S|d
z|j�
|��z|jzS)Nr!)�policy�allrr�c3�>�K�|]}t|���kV��dSr)r4)�.0�x�maxlens  �r�	<genexpr>z$EmailPolicy._fold.<locals>.<genexpr>�s-�����<�<�Q��Q���&��<�<�<�<�<�<rr%r&z: )r0r@�max_line_length�sys�maxsizer5�
refold_sourcer4�anyrC�isasciirrr*�linesep)rr!r-r>�lines�refoldrRs      @rr?zEmailPolicy._fold�se����5�&�!�!�	+��:�:�T�:�*�*�*�)-�)=�N��%�%�3�;��� � �"�"���$��-�>��$��.�>��A�s�5��8�}�}�S��Y�Y�6�q�8�6�A�=��<�<�<�<�%����)�<�<�<�<�<�	�
�	0��9�
0�"�]�]�_�_�,����
0�(��/�/���	O��&�&�t�R�W�W�U�^�^�<�<�A�A��A�N�N�N��d�{�T�\�.�.�u�5�5�5���D�Dr)F)�__name__�
__module__�__qualname__r
�message_factoryrCrWrrr	�content_managerrr"r.r8r;r@rJr?�
__classcell__)rs@rrrs��������8�t#�O��D��M�#�^�%�%�N�&�O������3�3�3�$,�,�,�8�8�8�&
0�
0�
0�;�;�;�*9�9�9�$E�E�E�E�E�E�E�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>rnsZ���
�	�	�	�
�
�
�
�L�L�L�L�L�L�L�L�L�L�L�L�'�'�'�'�'�'�A�A�A�A�A�A�1�1�1�1�1�1�&�&�&�&�&�&�	�	�	���2�:�h�'�'���CE�CE�CE�CE�CE�&�CE�CE���CE�L�+�-�-����	���t��	,�	,���}�}�V�}�$�$���}�}�V�T�}�:�:���:�:�4�:� � ���r