Your IP : 3.17.166.233
B
YI~dV � @ s� d dddgZ dZdZdZdZydd lmZmZ W n ek
rL d
Zd
ZY nX dd� Z d
d� Z
ddd �Zddd�Zddd�Z
ddd�Zdd� Zdd� Zdd� Zedkr�e� d
S )�encode�decode�encodestring�decodestring� =�L s 0123456789ABCDEF� � )�a2b_qp�b2a_qpNc C s: | dkr|S | dkr|S | t kp8d| ko2dkn S )Ns � _� � ~)�ESCAPE)�c� quotetabs�header� r �+/opt/alt/python37/lib64/python3.7/quopri.py�needsquoting s
r c C s( t | �} ttt| d t| d f� S )N� )�ordr �bytes�HEX)r r r r �quote$ s r Fc
C s< t d k r,| �� }t |||d�}|�|� d S |dfdd�}d }x�| �� }|sNP g } d}
|dd � dkrv|d d� }d}
xL|D ]D}t|f�}t|||�r�t|�}|r�|dkr�| �d� q|| �|� q|W |d k r�||� t� | �}x:t
|�tk�r||d td � d
d� |td d � }q�W |}q@W |d k �r8|||
d� d S )N)r r �
c S sj | r<| dd � dkr<|� | d d� t| dd � � | � n*| dkrX|� t| �| � n|� | | � d S )N���s � .)�writer )�s�output�lineEndr r r r ; s
(zencode.<locals>.writer r r r � s =
)r )r
�readr �readliner r r �append�EMPTYSTRING�join�len�MAXLINESIZE)
�inputr r r �data�odatar Zprevline�lineZoutline�strippedr Zthisliner r r r , s@
c C sF t d k rt | ||d�S ddlm} || �}|� }t||||� |�� S )N)r r r )�BytesIO)r
�ior. r �getvalue)r r r r. �infp�outfpr r r r j s c C s t d k r*| �� }t ||d�}|�|� d S d}�x�| �� }|s@P dt|� }}|dkr�||d |� dkr�d} |d }x.|dkr�||d |� dkr�|d }qxW nd} �x*||k �r�|||d � }
|
dkr�|r�|d }|d }q�|
tkr�||
}|d }q�|d |k�r| �sd} P q�|d |k �rR||d |d � tk�rR|t }|d }q�|d |k �r�t||d |d � ��r�t||d |d
� ��r�|tt||d |d
� �f� }|d
}q�||
}|d }q�W | s2|�|d � d}q2W |�r�|�|� d S )N)r r r r! r s
r r � � ) r r"