AlkantarClanX12

Your IP : 3.140.197.140


Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/quopri.cpython-37.opt-2.pyc

B

YI~dV�@s�ddddgZdZdZdZdZydd	lmZmZWnek
rLd
Zd
ZYnXdd�Z	d
d�Z
ddd�Zddd�Zddd�Z
ddd�Zdd�Zdd�Zdd�Zedkr�e�d
S)�encode�decode�encodestring�decodestring�=�Ls0123456789ABCDEF��)�a2b_qp�b2a_qpNcCs:|dkr|S|dkr|S|tkp8d|ko2dknS)Ns 	�_� �~)�ESCAPE)�c�	quotetabs�header�r�+/opt/alt/python37/lib64/python3.7/quopri.py�needsquotings
rcCs(t|�}ttt|dt|df�S)N�)�ordr�bytes�HEX)rrrr�quote$srFc
Cs<tdk	r,|��}t|||d�}|�|�dS|dfdd�}d}x�|��}|sNPg}	d}
|dd�dkrv|dd�}d}
xL|D]D}t|f�}t|||�r�t|�}|r�|dkr�|	�d�q||	�|�q|W|dk	r�||�t�	|	�}x:t
|�tk�r||dtd	�d
d�|td	d�}q�W|}q@W|dk	�r8|||
d�dS)N)rr�
cSsj|r<|dd�dkr<|�|dd�t|dd��|�n*|dkrX|�t|�|�n|�||�dS)N���s 	�.)�writer)�s�output�lineEndrrrr;s
(zencode.<locals>.writerrrr�s=
)r )r
�readr�readlinerrr�append�EMPTYSTRING�join�len�MAXLINESIZE)
�inputrrr�data�odatarZprevline�lineZoutline�strippedrZthislinerrrr,s@	





cCsFtdk	rt|||d�Sddlm}||�}|�}t||||�|��S)N)rrr)�BytesIO)r
�ior.r�getvalue)rrrr.�infp�outfprrrrjscCstdk	r*|��}t||d�}|�|�dSd}�x�|��}|s@Pdt|�}}|dkr�||d|�dkr�d}	|d}x.|dkr�||d|�dkr�|d}qxWnd}	�x*||k�r�|||d�}
|
dkr�|r�|d}|d}q�|
tkr�||
}|d}q�|d|k�r|	�sd}	Pq�|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�|�|�dS)N)rrrr!rs 	
rr��)	r	r"rr#r'r�ishexr�unhex)r)rrr*r+�newr,�i�n�partialrrrrrusR


(
B"
cCsDtdk	rt||d�Sddlm}||�}|�}t|||d�|��S)N)rr)r.)r	r/r.rr0)rrr.r1r2rrrr�scCsHd|kodknpFd|ko*dknpFd|koBdkSS)N�0�9�a�f�A�Fr)rrrrr5�sr5cCs�d}x�|D]�}t|f�}d|kr,dkr:nn
td�}nLd|krNdkr`nntd�d}n&d	|krtd
kr�nntd	�d}n|dt|�|}q
W|S)Nrr;r<�0r=r>�a�
r?r@r)rr)r�bitsrr8rrrr6�s


r6cCs�ddl}ddl}y|�|jdd�d�\}}WnV|jk
r�}z6|j|_t|�td�td�td�|�d�Wdd}~XYnXd}d}x(|D] \}}|dkr�d}|d	kr�d}q�W|r�|r�|j|_td
�|�d�|s�dg}d}	x�|D]�}
|
dk�r|jj	}nNyt
|
d�}Wn>tk
�rR}z|j�d
|
|f�d}	w�Wdd}~XYnXz*|�rlt
||jj	�nt||jj	|�Wd|
dk�r�|��Xq�W|	�r�|�|	�dS)Nrr!Ztdz"usage: quopri [-t | -d] [file] ...z-t: quote tabsz-d: decode; default encoder3z-tz-dz -t and -d are mutually exclusive�-�rbz%s: can't open (%s)
)�sys�getopt�argv�error�stderr�stdout�print�exit�stdin�buffer�open�OSErrorrrr�close)rGrHZopts�args�msgZdecoZtabs�orB�sts�file�fprrr�main�sT




rZ�__main__)F)FF)F)F)�__all__rr(rr%Zbinasciir	r
�ImportErrorrrrrrrr5r6rZ�__name__rrrr�<module>s(

>

+
.