AlkantarClanX12

Your IP : 3.141.21.199


Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/email/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/email/__pycache__/quoprimime.cpython-39.opt-2.pyc

a

R�f�&�@sBgd�ZddlZddlmZmZmZdZdZdZdd�e	d	�D�Z
e
dd�Ze
dd�Zd
e�
d�e�
d�D]Zee�ee<qrdeed
�<dD]Zee�ee<q�dd�Zdd�Zdd�Zdd�Zd*dd�Zdd�Zdd�Zd+dd�Zedd�Zd D]Zee�ee<q�d!efd"d#�Zefd$d%�ZeZeZd&d'�Zd(d)�ZdS),)
�body_decode�body_encode�body_length�decode�decodestring�
header_decode�
header_encode�
header_length�quote�unquote�N)�
ascii_letters�digits�	hexdigits�
�
�cCsg|]}d|�qS)z=%02X�)�.0�crr�5/opt/alt/python39/lib64/python3.9/email/quoprimime.py�
<listcomp>7�r�s-!*+/�ascii�_� s_ !"#$%&'()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~	cCst|�t|kS�N)�chr�_QUOPRI_HEADER_MAP��octetrrr�header_checkJsr!cCst|�t|kSr)r�_QUOPRI_BODY_MAPrrrr�
body_checkOsr#cCstdd�|D��S)Ncss|]}tt|�VqdSr)�lenr�rr rrr�	<genexpr>^rz header_length.<locals>.<genexpr>��sum��	bytearrayrrrrTs
rcCstdd�|D��S)Ncss|]}tt|�VqdSr)r$r"r%rrrr&hrzbody_length.<locals>.<genexpr>r'r)rrrrasrcCsft|t�st|�}|s&|�|���n<t|d�t|�|krT|d||7<n|�|���dS)N���)�
isinstance�strr�append�lstripr$)�L�s�maxlenZextrarrr�_max_appendks
r3cCstt|dd�d��S)N���)r�int�r1rrrr
vsr
cCstt|�Sr)�_QUOPRI_MAP�ord)rrrrr	{sr	�
iso-8859-1cCs$|sdS|�d��t�}d||fS)Nr�latin1z=?%s?q?%s?=)r�	translater)Zheader_bytes�charset�encodedrrrrsrs
�Lc
Cs�|dkrtd��|s|S|�t�}d|}|d}g}|j}|��D�]}d}t|�d|}	||	kr�||}
||
ddkr�||||
d��|
d}q^||
ddkr�||||
��|
d}q^||||
�d�|
}q^|�rR|ddv�rR||	}|d	k�rt|d�}n(|dk�r,|d|}n|t|d�}|||d�|�qD|||d��qD|dtv�rz|d
�|�|�S)N�zmaxlinelen must be at least 4�=r4r�r+z 	r5r)	�
ValueErrorr=�_QUOPRI_BODY_ENCODE_MAPr.�
splitlinesr$r	�CRLF�join)
�bodyZ
maxlinelen�eolZ
soft_breakZmaxlinelen1Zencoded_bodyr.�line�startZ	laststart�stopZroom�qrrrr�sD




rcCs|s|Sd}|��D]�}|��}|s.||7}qd}t|�}||kr||}|dkrd||7}|d7}nv|d|kr||d7}q:n^|d|kr�||dtvr�||dtvr�|t|||d��7}|d7}n||7}|d7}||kr:||7}q:q|ddv�r|�|��r|dd�}|S)	NrrrBr4rCr5r+r)rF�rstripr$rr
�endswith)r?rJZdecodedrK�i�nrrrrr�s8
,
rcCs|�d�}t|�S)Nr)�groupr
)�matchr1rrr�_unquote_matchs
rUcCs |�dd�}tjdt|tjd�S)Nrrz=[a-fA-F0-9]{2})�flags)�replace�re�subrU�ASCIIr8rrrr#sr)r)r;) �__all__rX�stringrr
rrG�NLZEMPTYSTRING�ranger9rr"�encoderrr:r!r#rrr3r
r	rrErrrrrUrrrrr�<module>s<




O0