Your IP : 3.139.79.187


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

�

�Q�f�&���	gd�ZddlZddlmZmZmZdZdZdZe	d�D�cgc]}d|z��	c}Z
e
ddZe
ddZd	ejd
�zejd
�zD]
Zee�ee<�deed�<d
D]
Zee�ee<�d�Zd�Zd�Zd�Zdd�Zd�Zd�Zdd�ZeddZdD]
Zee�ee<�[defd�Zefd�ZeZeZd�Zd�Zycc}w))
�body_decode�body_encode�body_length�decode�decodestring�
header_decode�
header_encode�
header_length�quote�unquote�N)�
ascii_letters�digits�	hexdigits�
�
��z=%02Xs-!*+/�ascii�_� s_ !"#$%&'()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~	c�.�	t|�t|k7S�N)�chr�_QUOPRI_HEADER_MAP��octets �7/opt/alt/python312/lib64/python3.12/email/quoprimime.py�header_checkrJs��H��u�:�+�E�2�2�2�c�.�	t|�t|k7Sr)r�_QUOPRI_BODY_MAPrs r�
body_checkr"Os��F��u�:�)�%�0�0�0rc�(�	td�|D��S)Nc3�@K�|]}tt|����y�wr)�lenr��.0rs  r�	<genexpr>z header_length.<locals>.<genexpr>^s����E�9�%�s�%�e�,�-�9�����sum��	bytearrays rr	r	Ts����E�9�E�E�Erc�(�	td�|D��S)Nc3�@K�|]}tt|����y�wr)r%r!r&s  rr(zbody_length.<locals>.<genexpr>hs����C���s�#�E�*�+��r)r*r,s rrras����C��C�C�Crc��t|t�st|�}|s |j|j	��yt|d�t|�z|kr|dxx||zz
cc<y|j|j	��y)N���)�
isinstance�strr�append�lstripr%)�L�s�maxlen�extras    r�_max_appendr:ksg���a�����F���	��������	�Q�r�U��c�!�f�	��	&�	�"�������	�������rc�4�	tt|ddd��S)N���)r�int�r7s rrrvs��N��s�1�Q�q�6�2���rc�&�tt|�Sr)�_QUOPRI_MAP�ord��cs rr
r
{s���s�1�v��rc�d�	|sy|jd�jt�}d|�d|�d�S)Nr�latin1z=?z?q?z?=)r�	translater)�header_bytes�charset�encodeds   rrrs8��	����!�!�(�+�5�5�6H�I�G�$�W�-�-rs
�Lc��	|dkrtd��|s|S|jt�}d|z}|dz
}g}|j}|j	�D]�}d}t|�dz
|z
}	||	krV||z}
||
dz
dk(r||||
dz
�|
dz
}n,||
dz
dk(r||||
�|
dz
}n||||
dz�|
}||	kr�V|rN|ddvrG||	z
}|d	k\rt
|d�}n|dk(r	|d|z}n|t
|d�z}|||d|z���|||d���|dtvr|d
�|j|�S)N�zmaxlinelen must be at least 4�=r<r�r1z 	r=r)	�
ValueErrorrH�_QUOPRI_BODY_ENCODE_MAPr4�
splitlinesr%r
�CRLF�join)
�body�
maxlinelen�eol�
soft_break�maxlinelen1�encoded_bodyr4�line�start�	laststart�stop�room�qs
             rrr�s����$�A�~��8�9�9�����>�>�1�2�D��s��J��q�.�K��L�
�
 �
 �F����!������I��M�J�.�	��y� ��;�&�D��D�1�H�~��$��t�E�$��(�+�,��q����d�Q�h��3�&��t�E�$�'�(��q����t�E�$�'�#�-�.����y� ��D��H��%��9�$�D��q�y��$�r�(�O�������H�z�)����t�B�x��0���4��b�>�A�%�&��4���<� �C"�H�B�x�4���r�
��8�8�L�!�!rc���	|s|Sd}|j�D]�}|j�}|s||z
}�d}t|�}||ks�.||}|dk7r||z
}|dz
}nV|dz|k(r|dz
}�)|dz|kr6||dztvr(||dztvr|t	|||dz�z
}|dz
}n
||z
}|dz
}||k(r||z
}||kr�{��|ddvr|j|�r|dd}|S)	NrrrOr<rPr=r1r)rS�rstripr%rr�endswith)rKrX�decodedr\�i�nrEs       rrr�s8�������G��"�"�$���{�{�}����s�N�G��
����I���!�e��Q��A��C�x��1����Q����1�����Q�����1��q��T�!�A�#�Y�)�3��Q�q�S�	�Y�8N��7�4��!�A�#�;�/�/���Q����1����Q����A�v��3���)�!�e�%�<�r�{�&� �W�%5�%5�c�%:��#�2�,���Nrc�<�	|jd�}t|�S)Nr)�groupr)�matchr7s  r�_unquote_matchrks��M�
���A��A��1�:�rc�~�	|jdd�}tjdt|tj��S)Nrrz=[a-fA-F0-9]{2})�flags)�replace�re�subrk�ASCIIr@s rrr$s3���	
�	�	�#�s��A�
�6�6�$�n�a�r�x�x�H�Hr)r)z
iso-8859-1) �__all__ro�stringr
rrrT�NL�EMPTYSTRING�rangerBrr!�encoderErrCrr"r	rr:rr
rrRrrrrrkrrDs0r�<module>rxsQ��
�0��
�3�3�
��	����%*�#�J�/�J�q�w��{�J�/�� ��^���q�>��
�(�M�(�(��1�	1�M�F�M�M�'�4J�	J�A���F��q��
K� #��3�s�8��.�A��a�&��Q��.�3�
1�

F�D�� �
�.�*+�1�-��	�A�!$�Q���A��
��!#��I"�^�,�`�����I��[0s�C

?>