ok

Mini Shell

Direktori : /usr/lib64/python3.6/email/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/email/__pycache__/quoprimime.cpython-36.opt-2.pyc

3


 \�&�
@s`dddddddddd	g
Zd
dlZd
dlmZmZmZd
ZdZdZdd�e	d�D�Z
e
dd�Ze
dd�Zx,dej
d�ej
d�D]Zee�ee<q�Wdeed�<xdD]Zee�ee<q�Wdd�Zdd�Zdd�Zdd�Zd+dd�Zd d	�Zd!d�Zd,d#d�Zedd�Zxd$D]Zee�ee<�qWd%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�	hexdigitsz
�
�cCsg|]}d|�qS)z=%02X�)�.0�crr�(/usr/lib64/python3.6/email/quoprimime.py�
<listcomp>7sr�s-!*+/�ascii�_� s_ !"#$%&'()*+,-./0123456789:;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~	cCst|�t|kS)N)�chr�_QUOPRI_HEADER_MAP)�octetrrr�header_checkJsrcCst|�t|kS)N)r�_QUOPRI_BODY_MAP)rrrr�
body_checkOsrcCstdd�|D��S)Ncss|]}tt|�VqdS)N)�lenr)rrrrr�	<genexpr>^sz header_length.<locals>.<genexpr>)�sum)�	bytearrayrrrrTs
cCstdd�|D��S)Ncss|]}tt|�VqdS)N)r r)rrrrrr!hszbody_length.<locals>.<genexpr>)r")r#rrrrascCsft|t�st|�}|s&|j|j��n<t|d�t|�|krT|d||7<n|j|j��dS)N����r%)�
isinstance�strr�append�lstripr )�L�s�maxlenZextrarrr�_max_appendks
r-cCstt|dd�d��S)Nr$��)r�int)r+rrrr
vscCstt|�S)N)�_QUOPRI_MAP�ord)rrrrr	{s�
iso-8859-1cCs$|sdS|jd�jt�}d||fS)Nr�latin1z=?%s?q?%s?=)r�	translater)Zheader_bytes�charset�encodedrrrrss
�Lc
Cs�|dkrtd��|s|S|jt�}d|}|d}g}|j}�x,|j�D�]}d}t|�d|}	x�||	kr�||}
||
ddkr�||||
d��|
d}qd||
ddkr�||||
��|
d}qd||||
�d�|
}qdW|o�|d
dk�rX||	}|dk�rt|d�}n(|dk�r2|d|}n|t|d
�}|||d�|�qH|||d��qHW|dtk�r�|d	�|j|�S)N�zmaxlinelen must be at least 4�=r$r�z 	r.rr%r%r%r%r%r%)	�
ValueErrorr5�_QUOPRI_BODY_ENCODE_MAPr(�
splitlinesr r	�CRLF�join)
ZbodyZ
maxlinelen�eolZ
soft_breakZmaxlinelen1Zencoded_bodyr(�line�startZ	laststart�stopZroom�qrrrr�sD





cCs |s|Sd}x�|j�D]�}|j�}|s0||7}qd}t|�}x�||kr�||}|dkrh||7}|d7}nv|d|kr�|d7}q>n^|d|kr�||dtkr�||dtkr�|t|||d��7}|d7}n||7}|d7}||kr>||7}q>WqW|ddk�r|j|��r|dd	�}|S)
Nrrr:r$r;r.z
r%r%)r>�rstripr rr
�endswith)r7rAZdecodedrB�i�nrrrrr�s8

,
cCs|jd�}t|�S)Nr)�groupr
)�matchr+rrr�_unquote_matchs
rLcCs |jdd�}tjdt|tjd�S)Nrrz=[a-fA-F0-9]{2})�flags)�replace�re�subrL�ASCII)r+rrrr#s)r)r3) �__all__rO�stringrr
rr?�NLZEMPTYSTRING�ranger1rr�encoderrr2rrrrr-r
r	rr=rrrrrLrrrrr�<module>sN





O0

Zerion Mini Shell 1.0