ok

Mini Shell

Direktori : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/quopri.cpython-35.opt-2.pyc



���]V�@s�ddddgZdZdZdZdZydd	lmZmZWnek
rdd
Zd
ZYnXdd�Z	d
d�Z
ddd�Zdddd�Zddd�Z
ddd�Zdd�Zdd�Zdd�Zedkr�e�d
S)�encode�decode�encodestring�decodestring�=�Ls0123456789ABCDEF��)�a2b_qp�b2a_qpNcCsG|dkr|S|dkr |S|tkpFd|koCdknS)Ns 	�_� �~)�ESCAPE)�c�	quotetabs�header�r�+/opt/alt/python35/lib64/python3.5/quopri.py�needsquotings
rcCs0t|�}ttt|dt|df�S)N�)�ordr�bytes�HEX)rrrr�quote$srFc
Cs�tdk	rA|j�}t|d|d|�}|j|�dS|ddd�}d}x2|j�}|soPg}	d}
|dd�dkr�|dd
�}d}
xj|D]b}t|f�}t|||�r�t|�}|r|dkr|	jd	�q�|	j|�q�W|dk	r*||�tj	|	�}xHt
|�tkr�||dtd�d
d�|tdd�}q<W|}q\W|dk	r�||d
|
�dS)Nrrs
cSs�|rN|dd�dkrN|j|dd�t|dd��|�n7|dkrt|jt|�|�n|j||�dS)N�s 	�.���rr)�writer)�s�output�lineEndrrrr;s
2zencode.<locals>.writerrrrr s=
rr)r
�readr�readlinerrr�append�EMPTYSTRING�join�len�MAXLINESIZE)
�inputrrr�data�odatarZprevline�lineZoutline�strippedrZthislinerrrr,s@	




cCsdtdk	r"t|d|d|�Sddlm}||�}|�}t||||�|j�S)Nrrr)�BytesIO)r
�ior-r�getvalue)rrrr-�infp�outfprrrrjs	cCs�tdk	r;|j�}t|d|�}|j|�dSd}x.|j�}|sWPdt|�}}|dkr�||d|�dkr�d}	|d}x=|dkr�||d|�dkr�|d}q�Wnd}	xn||krP|||d�}
|
dkr,|r,|d}|d}q�|
tkrO||
}|d}q�|d|krp|	rpd}	Pq�|d|kr�||d|d	�tkr�|t}|d	}q�|d	|kr9t||d|d	��r9t||d	|d
��r9|tt||d|d
��f�}|d
}q�||
}|d}q�W|	sD|j|d�d}qDW|r�|j|�dS)Nrrrrs
s 	
rr��)	r	r!rr"r&r�ishexr�unhex)r(rrr)r*�newr+�i�n�partialrrrrrusR
&
)



.

L+


cCs^tdk	rt|d|�Sddlm}||�}|�}t||d|�|j�S)Nrr)r-)r	r.r-rr/)rrr-r0r1rrrr�s	cCsPd|kodknpOd|ko3dknpOd|koMdkSS)N�0�9�a�f�A�Fr)rrrrr4�sr4cCs�d}x�|D]�}t|f�}d|ko9dknrMtd�}n^d|koddknr|td�d}n/d	|ko�d
knr�td	�d}n|dt|�|}q
W|S)Nrr:r;�0r<r=�a�
r>r?r)rr)r�bitsrr7rrrr5�s
r5c(Cs)ddl}ddl}y)|j|jdd�d�\}}Wni|jk
r�}zF|j|_t|�td�td�td�|jd�WYdd}~XnXd}d}x8|D]0\}}|dkr�d}|d	kr�d}q�W|r#|r#|j|_td
�|jd�|s2dg}d}	x�|D]�}
|
dkr`|jj	}n^yt
|
d�}WnHtk
r�}z(|jjd
|
|f�d}	w?WYdd}~XnXz6|r�t
||jj	�nt||jj	|�Wd|
dkr
|j�Xq?W|	r%|j|	�dS)NrrZtdz"usage: quopri [-t | -d] [file] ...z-t: quote tabsz-d: decode; default encoder2z-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)rFrGZopts�args�msgZdecoZtabs�orA�sts�file�fprrr�main�sT)



 


	
rY�__main__)�__all__rr'rr$Zbinasciir	r
�ImportErrorrrrrrrr4r5rY�__name__rrrr�<module>s(
>+.

Zerion Mini Shell 1.0