AlkantarClanX12

Your IP : 3.145.103.169


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

�

�Q�f�<���	ddlZddlmZddlmZddlmZgd�ZGd�d�Zd�Z	d	�Z
Gd
�deej��Ze
Gd
�de��Z
e
�Zy)�N)�header)�charset)�_has_surrogates)�Policy�Compat32�compat32c�8��eZdZ	�fd�Zd�Zd�Zd�Zd�Z�xZS)�_PolicyBasec����	|j�D]T\}}t||�rtt|�||��'tdj
||jj���y�Nz*{!r} is an invalid keyword argument for {})	�items�hasattr�superr
�__setattr__�	TypeError�format�	__class__�__name__)�self�kw�name�valuers    ��8/opt/alt/python312/lib64/python3.12/email/_policybase.py�__init__z_PolicyBase.__init__)sc���	�
�8�8�:�K�D�%��t�T�"��k�$�3�D�%�@��@�G�G��d�n�n�5�5�7�8�8�	&�c���|jj�D��cgc]\}}dj||���}}}dj|jjdj|��Scc}}w)Nz{}={!r}z{}({})z, )�__dict__r
rrr�join)rrr�argss    r�__repr__z_PolicyBase.__repr__7sh��$(�M�M�$7�$7�$9�<�$9�[�T�5��!�!�$��.�$9�	
�<����t�~�~�6�6��	�	�$��H�H��<s�A2c��	|jj|j�}|jj�D]\}}tj|||��|j�D]W\}}t
||�s/tdj||jj���tj|||��Y|Sr)
r�__new__rr
�objectrrrrr)rr�	newpolicy�attrrs     r�clonez_PolicyBase.clone<s���	��N�N�*�*�4�>�>�:�	��=�=�.�.�0�K�D�%����y�$��6�1��8�8�:�K�D�%��4��&��@�G�G��d�n�n�5�5�7�8�8�
���y�$��6�&��rc��t||�rd}nd}t|j|jj|���)Nz'{!r} object attribute {!r} is read-onlyz!{!r} object has no attribute {!r})r�AttributeErrorrrr)rrr�msgs    rrz_PolicyBase.__setattr__Ns6���4���;�C�5�C��S�Z�Z����(?�(?��F�G�Grc�<�	|jdi|j��S)N�)r&r)r�others  r�__add__z_PolicyBase.__add__Us!��	�
�t�z�z�+�E�N�N�+�+r)	r�
__module__�__qualname__rr r&rr-�
__classcell__)rs@rr
r
s#����*8�I�
�$H�,rr
c�f�|jdd�d}|jdd�d}|dz|zS)N�
�r)�rsplit�split)�doc�	added_docs  r�_append_docr8^s;��

�*�*�T�1�
�a�
 �C�����a�(��+�I���:�	�!�!rc���|jrM|jjd�r2t|jdj|j�|_|jj�D]{\}}|js�|jjd�s�/d�|jD�D]7}t
t
||�d�}|s�t||j�|_�{�}|S)N�+rc3�JK�|]}|j�D]}|����y�w�N)�mro)�.0�base�cs   r�	<genexpr>z%_extend_docstrings.<locals>.<genexpr>hs����F�M�D�4�8�8�:�a�a�:�a�M�s�!#�__doc__)rB�
startswithr8�	__bases__rr
�getattr)�clsrr%r@r6s     r�_extend_docstringsrGcs���
�{�{�s�{�{�-�-�c�2�!�#�-�-��"2�":�":�C�K�K�H����l�l�(�(�*�
��d��<�<�D�L�L�3�3�C�8�F�C�M�M�F���g�a��.�	�:���#.�s�D�L�L�#A�D�L��	G�+��Jrc���eZdZ	dZdZdZdZdZdZdZ	d�Z
d�Zd	�Ze
jd
��Ze
jd��Ze
jd��Ze
jd
��Ze
jd��Zy)rFr2�8bit�NNTc�F�	|jr|�|j||�yr<)�raise_on_defect�register_defect�r�obj�defects   r�
handle_defectzPolicy.handle_defect�s'��
	�����L����S�&�)rc�<�	|jj|�yr<)�defects�appendrNs   rrMzPolicy.register_defect�s��		�	�����6�"rc��	yr<r+)rrs  r�header_max_countzPolicy.header_max_count�s��	� rc��	t�r<��NotImplementedError)r�sourceliness  r�header_source_parsezPolicy.header_source_parse����	�"�!rc��	t�r<rX�rrrs   r�header_store_parsezPolicy.header_store_parse�s��	�"�!rc��	t�r<rXr^s   r�header_fetch_parsezPolicy.header_fetch_parse�s��	�"�!rc��	t�r<rXr^s   r�foldzPolicy.folds��	�"�!rc��	t�r<rXr^s   r�fold_binaryzPolicy.fold_binaryr\r)rr.r/rL�linesep�cte_type�max_line_length�mangle_from_�message_factory�verify_generated_headersrQrMrV�abc�abstractmethodr[r_rarcrer+rrrrps���5�n�O��G��H��O��L��O�#��*�&#��&	���"��"�	���"��"�	���"��"�	���	"��	"�	���"��"rr)�	metaclassc�<�eZdZ	dZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
y	)
rTc��t|t�s|St|�r&tj|t
j|��S|S)N�r�header_name)�
isinstance�strrr�Header�_charset�UNKNOWN8BITr^s   r�_sanitize_headerzCompat32._sanitize_header!s@���%��%��L��5�!��=�=���0D�0D�-1�3�
3��Lrc��	|djdd�\}}|jd�dj|dd�z}||jd�fS)Nr�:r3z 	�z
)r5�lstripr�rstrip)rrZrrs    rr[zCompat32.header_source_parse-sY��	�"�!�n�*�*�3��2���e����U�#�b�g�g�k�!�"�o�&>�>���e�l�l�6�*�+�+rc��	||fSr<r+r^s   rr_zCompat32.header_store_parse9s��	��e�}�rc�(�	|j||�Sr<)rxr^s   rrazCompat32.header_fetch_parse?s��	��$�$�T�5�1�1rc�,�	|j||d��S)NT��sanitize)�_foldr^s   rrcz
Compat32.foldFs��	��z�z�$���z�5�5rc�j�	|j|||jdk(��}|jdd�S)N�7bitr��ascii�surrogateescape)r�rg�encode)rrr�foldeds    rrezCompat32.fold_binaryPs8��	����D�%�$�-�-��2G��H���}�}�W�&7�8�8rc��g}|jd|z�t|t�r`t|�r=|r't	j
|tj|��}n.|j|�d}nt	j
||��}n|}|�Fd}|j�|j}|j|j|j|���|j|j�dj|�S)Nz%s: rq)rrr)rf�
maxlinelenr{)rTrsrtrrrurvrwrhr�rfr)rrrr��parts�hr�s       rr�zCompat32._fold\s�����
���V�d�]�#��e�S�!��u�%���
�
�e�.6�.B�.B�26�8�A��L�L��'��A��M�M�%�T�:���A��=��J��#�#�/�!�1�1�
��L�L����$�,�,�:��N�O�
���T�\�\�"��w�w�u�~�rN)rr.r/rirxr[r_rarcrer�r+rrrrs1���
�L�
�
,��2�6�
9�rr)rl�emailrrrv�email.utilsr�__all__r
r8rG�ABCMetarrrr+rr�<module>r�ss���
��%�'���I,�I,�X"�

�d"�[�C�K�K�d"�N�c�v�c��c�L�:�r