AlkantarClanX12

Your IP : 18.118.137.96


Current Path : /opt/alt/python310/lib64/python3.10/email/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/email/__pycache__/quoprimime.cpython-310.opt-2.pyc

o

6��f�&�@sD	gd�ZddlZddlmZmZmZdZdZdZdd�e	d	�D�Z
e
dd�Ze
dd�Zd
e�
d�e�
d�D]Zee�ee<q:deed
�<dD]Zee�ee<qKdd�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�7/opt/alt/python310/lib64/python3.10/email/quoprimime.py�
<listcomp>7sr�s-!*+/�ascii�_� s_ !"#$%&'()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~	cC�	t|�t|kS�N)�chr�_QUOPRI_HEADER_MAP��octetrrr�header_checkJ�r!cCrr)r�_QUOPRI_BODY_MAPrrrr�
body_checkOr"r$cC�	tdd�|D��S)Ncs��|]	}tt|�VqdSr)�lenr�rr rrr�	<genexpr>^��z header_length.<locals>.<genexpr>��sum��	bytearrayrrrrTs	rcCr%)Ncsr&r)r'r#r(rrrr)hr*zbody_length.<locals>.<genexpr>r+r-rrrrasrcCsjt|t�s	t|�}|s|�|���dSt|d�t|�|kr,|d||7<dS|�|���dS)N���)�
isinstance�strr�append�lstripr')�L�s�maxlenZextrarrr�_max_appendks
r7cCs	tt|dd�d��S)N���)r�int�r5rrrr
vsr
cCstt|�Sr)�_QUOPRI_MAP�ord)rrrrr	{sr	�
iso-8859-1cCs&	|sdS|�d��t�}d||fS)Nr�latin1z=?%s?q?%s?=)r�	translater)Zheader_bytes�charset�encodedrrrrs
rs
�Lc
Cs�	|dkr	td��|s
|S|�t�}d|}|d}g}|j}|��D]�}d}t|�d|}	||	krs||}
||
ddkrN||||
d��|
d}n!||
ddkrc||||
��|
d}n||||
�d�|
}||	ks3|r�|ddvr�||	}|d	kr�t|d�}n|dkr�|d|}n|t|d�}|||d�|�q#|||d��q#|dtvr�|d
�|�|�S)N�zmaxlinelen must be at least 4�=r8r�r/z 	r9r)	�
ValueErrorrA�_QUOPRI_BODY_ENCODE_MAPr2�
splitlinesr'r	�CRLF�join)
�bodyZ
maxlinelen�eolZ
soft_breakZmaxlinelen1Zencoded_bodyr2�line�startZ	laststart�stopZroom�qrrrr�sH


�
rcCs	|s|Sd}|��D]n}|��}|s||7}qd}t|�}||kry||}|dkr3||7}|d7}n:|d|kr>|d7}q|d|kre||dtvre||dtvre|t|||d��7}|d7}n||7}|d7}||kru||7}||ks"q|ddvr�|�|�r�|dd�}|S)	NrrrFr8rGr9r/r)rJ�rstripr'rr
�endswith)rCrNZdecodedrO�i�nrrrrr�s>
,
��rcCs	|�d�}t|�S)Nr)�groupr
)�matchr5rrr�_unquote_matchs
rYcCs"	|�dd�}tjdt|tjd�S)Nrrz=[a-fA-F0-9]{2})�flags)�replace�re�subrY�ASCIIr<rrrr#sr)r)r?) �__all__r\�stringrr
rrK�NLZEMPTYSTRING�ranger=rr#�encoderrr>r!r$rrr7r
r	rrIrrrrrYrrrrr�<module>s@



O0