ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/email/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/email/__pycache__/_policybase.cpython-311.opt-2.pyc

�

�f�:����	ddlZddlmZddlmZddlmZgd�ZGd�d��Zd�Z	d	�Z
Gd
�deej���Ze
Gd
�de����Z
e
��ZdS)�N)�header)�charset)�_has_surrogates)�Policy�Compat32�compat32c�8��eZdZ	�fd�Zd�Zd�Zd�Zd�Z�xZS)�_PolicyBasec�
��	|���D]k\}}t||��r*tt|���||���?td�||jj�����dS�Nz*{!r} is an invalid keyword argument for {})	�items�hasattr�superr
�__setattr__�	TypeError�format�	__class__�__name__)�self�kw�name�valuers    ��8/opt/alt/python311/lib64/python3.11/email/_policybase.py�__init__z_PolicyBase.__init__)s����	�
�8�8�:�:�	8�	8�K�D�%��t�T�"�"�
8��k�$�'�'�3�3�D�%�@�@�@�@��@�G�G��d�n�5�7�7�8�8�8�		8�	8�c��d�|j���D��}d�|jjd�|����S)Nc�@�g|]\}}d�||����S)z{}={!r})r)�.0rrs   r�
<listcomp>z(_PolicyBase.__repr__.<locals>.<listcomp>8s<��<�<�<� �T�5��!�!�$��.�.�<�<�<rz{}({})z, )�__dict__r
rrr�join)r�argss  r�__repr__z_PolicyBase.__repr__7sQ��<�<�$(�M�$7�$7�$9�$9�<�<�<�����t�~�6��	�	�$���H�H�Hrc��	|j�|j��}|j���D]!\}}t�|||���"|���D]^\}}t
||��s-td�||jj	�����t�|||���_|Sr)
r�__new__r r
�objectrrrrr)rr�	newpolicy�attrrs     r�clonez_PolicyBase.clone<s���	��N�*�*�4�>�:�:�	��=�.�.�0�0�	7�	7�K�D�%����y�$��6�6�6�6��8�8�:�:�	7�	7�K�D�%��4��&�&�
8��@�G�G��d�n�5�7�7�8�8�8�
���y�$��6�6�6�6��rc��t||��rd}nd}t|�|jj|�����)Nz'{!r} object attribute {!r} is read-onlyz!{!r} object has no attribute {!r})r�AttributeErrorrrr)rrr�msgs    rrz_PolicyBase.__setattr__NsA���4����	6�;�C�C�5�C��S�Z�Z���(?��F�F�G�G�Grc�(�	|jdi|j��S)N�)r)r )r�others  r�__add__z_PolicyBase.__add__Us#��	�
�t�z�+�+�E�N�+�+�+r)	r�
__module__�__qualname__rr#r)rr0�
__classcell__)rs@rr
r
s��������*8�8�8�8�8�I�I�I�
���$H�H�H�,�,�,�,�,�,�,rr
c��|�dd��d}|�dd��d}|dz|zS)N�
�r)�rsplit�split)�doc�	added_docs  r�_append_docr;^sA��

�*�*�T�1�
�
�a�
 �C�����a�(�(��+�I���:�	�!�!rc��|jrD|j�d��r*t|jdj|j��|_|j���D]v\}}|jrj|j�d��rPd�|jD��D]>}t
t
||��d��}|rt||j��|_n�?�w|S)N�+rc3�HK�|]}|���D]}|V���dS�N)�mro)r�base�cs   r�	<genexpr>z%_extend_docstrings.<locals>.<genexpr>hs7����F�F�D�4�8�8�:�:�F�F�a�a�F�F�F�F�F�F�Fr�__doc__)rD�
startswithr;�	__bases__r r
�getattr)�clsrr(rBr9s     r�_extend_docstringsrIcs���
�{�I�s�{�-�-�c�2�2�I�!�#�-��"2�":�C�K�H�H����l�(�(�*�*���
��d��<�	�D�L�3�3�C�8�8�	�F�F�C�M�F�F�F�
�
���g�a��.�.�	�:�:����#.�s�D�L�#A�#A�D�L��E����Jrc���eZdZ	dZdZdZdZdZdZd�Z	d�Z
d�Zej
d	���Zej
d
���Zej
d���Zej
d���Zej
d
���ZdS)rFr5�8bit�NNc�F�	|jr|�|�||��dSr?)�raise_on_defect�register_defect�r�obj�defects   r�
handle_defectzPolicy.handle_defect�s5��
	���	��L����S�&�)�)�)�)�)rc�<�	|j�|��dSr?)�defects�appendrPs   rrOzPolicy.register_defect�s%��		�	����6�"�"�"�"�"rc��	dSr?r.)rrs  r�header_max_countzPolicy.header_max_count�s��	� �trc��	t�r?��NotImplementedError)r�sourceliness  r�header_source_parsezPolicy.header_source_parse����	�"�!rc��	t�r?rZ�rrrs   r�header_store_parsezPolicy.header_store_parse�s��	�"�!rc��	t�r?rZr`s   r�header_fetch_parsezPolicy.header_fetch_parse�s��	�"�!rc��	t�r?rZr`s   r�foldzPolicy.fold�s��	�"�!rc��	t�r?rZr`s   r�fold_binaryzPolicy.fold_binaryr^r)rr1r2rN�linesep�cte_type�max_line_length�mangle_from_�message_factoryrSrOrX�abc�abstractmethodr]rarcrergr.rrrrps������.�`�O��G��H��O��L��O�*�*�*�&#�#�#����&	��"�"���"�	��"�"���"�	��"�"���"�	��	"�	"���	"�	��"�"���"�"�"rr)�	metaclassc�>�eZdZ	dZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	S)
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_headersU���%��%�%�	��L��5�!�!�	��=���0D�-1�3�3�3�
3��Lrc���	|d�dd��\}}|�d��d�|dd���z}||�d��fS)Nr�:r6z 	�z
)r8�lstripr!�rstrip)rr\rrs    rr]zCompat32.header_source_parse%sg��	�"�!�n�*�*�3��2�2���e����U�#�#�b�g�g�k�!�"�"�o�&>�&>�>���e�l�l�6�*�*�+�+rc��	||fSr?r.r`s   rrazCompat32.header_store_parse1s��	��e�}�rc�0�	|�||��Sr?)ryr`s   rrczCompat32.header_fetch_parse7s��	��$�$�T�5�1�1�1rc�4�	|�||d���S)NT��sanitize)�_foldr`s   rrez
Compat32.fold>s!��	��z�z�$���z�5�5�5rc�r�	|�|||jdk���}|�dd��S)N�7bitr��ascii�surrogateescape)r�ri�encode)rrr�foldeds    rrgzCompat32.fold_binaryHs<��	����D�%�$�-��2G��H�H���}�}�W�&7�8�8�8rc��g}|�d|z��t|t��rbt|��r<|r"t	j|tj|���}n1|�|��d}nt	j||���}n|}|�?d}|j�|j}|�|�	|j
|�����|�|j
��d�|��S)Nz%s: rr)rsr)rh�
maxlinelenr|)rVrtrurrrvrwrxrjr�rhr!)rrrr��parts�hr�s       rr�zCompat32._foldTs����
���V�d�]�#�#�#��e�S�!�!�	��u�%�%�
;����
�e�.6�.B�26�8�8�8�A�A��L�L��'�'�'��A�A��M�%�T�:�:�:����A��=��J��#�/�!�1�
��L�L����$�,�:��N�N�O�O�O�
���T�\�"�"�"��w�w�u�~�~�rN)rr1r2rkryr]rarcrergr�r.rrrrs��������
�L�
�
�
�
,�
,�
,����2�2�2�6�6�6�
9�
9�
9�����rr)rm�emailrrrw�email.utilsr�__all__r
r;rI�ABCMetarrrr.rr�<module>r�s9���
�
�
�
�������%�%�%�%�%�%�'�'�'�'�'�'�����I,�I,�I,�I,�I,�I,�I,�I,�X"�"�"�

�
�
�\"�\"�\"�\"�\"�[�C�K�\"�\"�\"�\"�~�c�c�c�c�c�v�c�c���c�L�8�:�:���r

Zerion Mini Shell 1.0