Your IP : 3.21.12.122


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

o

6��fq�@s�	gd�ZdZdZdZdZz
ddlmZmZWn
ey$dZdZYnwdd	�Z	d
d�Z
dd
d�Zddd�Zddd�Z
ddd�Zdd�Zdd�Zdd�ZedkrVe�dSdS))�encode�decode�encodestring�decodestring�=�Ls0123456789ABCDEF��)�a2b_qp�b2a_qpNcCs<	|dvr|S|dkr
|S|tkpd|kodknS)N� 	�_� �~)�ESCAPE)�c�	quotetabs�header�r�-/opt/alt/python310/lib64/python3.10/quopri.py�needsquotings"rcCs*	t|�}ttt|dt|df�S)N�)�ordr�bytes�HEX�rrrr�quote$s rFc
Cs>	tdur|��}t|||d�}|�|�dS|dfdd�}d}	|��}|s(nig}	d}
|dd�dkr<|dd�}d}
|D]"}t|f�}t|||�rOt|�}|r[|dkr[|	�d	�q>|	�|�q>|duri||�t�	|	�}t
|�tkr�||dtd�d
d�|tdd�}t
|�tkst|}q!|dur�|||
d�dSdS)N�rr�
cSsn|r|dd�dvr|�|dd�t|dd��|�dS|dkr.|�t|�|�dS|�||�dS)N���r�.)�writer)�s�output�lineEndrrrr ;s
*zencode.<locals>.write�rrr
rs=
)r#)r
�readr �readlinerrr�append�EMPTYSTRING�join�len�MAXLINESIZE)
�inputr"rr�data�odatar Zprevline�lineZoutline�strippedrZthislinerrrr,sH



��!�rcCsFtdurt|||d�Sddlm}||�}|�}t||||�|��S)Nrr��BytesIO)r
�ior2r�getvalue)r!rrr2�infp�outfprrrrjsrcCs	tdur|��}t||d�}|�|�dSd}	|��}|s n�dt|�}}|dkr\||d|�dkr\d}	|d}|dkr[||d|�dvr[|d}|dkr[||d|�dvsInd}	||kr�|||d�}
|
dkry|ry|d}|d}no|
tkr�||
}|d}nb|d|kr�|	s�d}	n[|d|kr�||d|d	�tkr�|t}|d	}n<|d	|kr�t||d|d	��r�t||d	|d
��r�|tt||d|d
��f�}|d
}n||
}|d}||ksb|	s�|�|d�d}q|�r|�|�dSdS)N�rrr$rrs 	
rr
��)	r	r%r r&r*r�ishexr�unhex)r,r"rr-r.�newr/�i�n�partialrrrrrusN
��$<,���rcCsDtdur
t||d�Sddlm}||�}|�}t|||d�|��S)Nr7rr1)r	r3r2rr4)r!rr2r5r6rrrr�srcCsJ	d|ko
dknp$d|kodknp$d|ko"dkSS)N�0�9�a�f�A�Frrrrrr:�sHr:cCs�	d}|D]G}t|f�}d|krdkrnntd�}n%d|kr'dkr0nntd�d}nd	|kr:d
krBnntd	�d}|dt|�|}q|S)Nrr@rA�0rBrC�a�
rDrEr)rr)r!�bitsrr=rrrr;�s

r;cCs�ddl}ddl}z|�|jdd�d�\}}Wn,|jyC}z|j|_t|�td�td�td�|�d�WYd}~nd}~wwd}d}|D]\}}|d	krTd
}|dkrZd
}qJ|rl|rl|j|_td�|�d�|sqd
g}d}	|D]W}
|
d
kr�|jj	}n&zt
|
d�}Wnty�}z|j�d|
|f�d}	WYd}~qud}~wwz|r�t
||jj	�nt||jj	|�W|
d
kr�|��qu|
d
kr�|��ww|	r�|�|	�dSdS)Nrr$Ztdz"usage: quopri [-t | -d] [file] ...z-t: quote tabsz-d: decode; default encoder8Fz-tTz-dz -t and -d are mutually exclusive�-�rbz%s: can't open (%s)
)�sys�getopt�argv�error�stderr�stdout�print�exit�stdin�buffer�open�OSErrorr rr�close)rLrMZopts�args�msgZdecoZtabs�orG�sts�file�fprrr�main�sd���


�����
��r_�__main__)F)FF)�__all__rr+rr(Zbinasciir	r
�ImportErrorrrrrrrr:r;r_�__name__rrrr�<module>s0�

>

+.
�

?>