AlkantarClanX12

Your IP : 18.217.140.224


Current Path : /proc/self/root/usr/lib64/python3.8/email/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib64/python3.8/email/__pycache__/quoprimime.cpython-38.opt-2.pyc

U

e5d�&�
@sTdddddddddd	g
Zd
dlZd
dlmZmZmZd
ZdZdZdd�e	d�D�Z
e
dd�Ze
dd�Zde�
d�e�
d�D]Zee�ee<q�deed�<dD]Zee�ee<q�dd�Zdd�Zdd�Zdd�Zd+dd�Zd d	�Zd!d�Zd,d#d�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�(/usr/lib64/python3.8/email/quoprimime.py�
<listcomp>7sr�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�rrrrr�	<genexpr>^sz header_length.<locals>.<genexpr>��sum��	bytearrayrrrrTs
cCstdd�|D��S)Ncss|]}tt|�VqdSr)r#r!r$rrrr%hszbody_length.<locals>.<genexpr>r&r(rrrrascCsft|t�st|�}|s&|�|���n<t|d�t|�|krT|d||7<n|�|���dS)N���)�
isinstance�strr�append�lstripr#)�L�s�maxlenZextrarrr�_max_appendks
r2cCstt|dd�d��S)N���)r�int�r0rrrr
vscCstt|�Sr)�_QUOPRI_MAP�ord)rrrrr	{s�
iso-8859-1cCs$|sdS|�d��t�}d||fS)Nr�latin1z=?%s?q?%s?=)r�	translater)Zheader_bytes�charset�encodedrrrrss
�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|ddk�rR||	}|d	k�rt|d�}n(|dk�r,|d|}n|t|d�}|||d�|�qD|||d��qD|dtk�rz|d
�|�|�S)N�zmaxlinelen must be at least 4�=r3r�r*z 	r4r)	�
ValueErrorr<�_QUOPRI_BODY_ENCODE_MAPr-�
splitlinesr#r	�CRLF�join)
ZbodyZ
maxlinelen�eolZ
soft_breakZmaxlinelen1Zencoded_bodyr-�line�startZ	laststart�stopZroom�qrrrr�sD




cCs|s|Sd}|��D]�}|��}|s.||7}qd}t|�}||kr||}|dkrd||7}|d7}nv|d|kr||d7}q:n^|d|kr�||dtkr�||dtkr�|t|||d��7}|d7}n||7}|d7}||kr:||7}q:q|ddk�r|�|��r|dd�}|S)	NrrrAr3rBr4r*r)rE�rstripr#rr
�endswith)r>rHZdecodedrI�i�nrrrrr�s8
,
cCs|�d�}t|�S)Nr)�groupr
)�matchr0rrr�_unquote_matchs
rScCs |�dd�}tjdt|tjd�S)Nrrz=[a-fA-F0-9]{2})�flags)�replace�re�subrS�ASCIIr7rrrr#s)r)r:) �__all__rV�stringrr
rrF�NLZEMPTYSTRING�ranger8rr!�encoderrr9r r"rrr2r
r	rrDrrrrrSrrrrr�<module>sP�




O0