AlkantarClanX12

Your IP : 52.15.170.196


Current Path : /proc/self/root/usr/lib64/python3.6/encodings/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib64/python3.6/encodings/__pycache__/uu_codec.cpython-36.pyc

3


 \�
�@s�dZddlZddlZddlmZddd�Zdd	d
�ZGdd�dej�ZGd
d�dej�ZGdd�dej	�Z	Gdd�deej
�Z
Gdd�deej�Zdd�ZdS)aPython 'uu_codec' Codec - UU content transfer encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com). Some details were
adapted from uu.py which was written by Lance Ellinghouse and
modified by Jack Jansen and Fredrik Lundh.
�N)�BytesIO�strict�<data>�c	Cs�|dkst�t|�}t�}|j}|j}|d|d@|fjd��|d�}x|rf|tj|��|d�}qJW|d�|j�t|�fS)Nrzbegin %o %s
i��ascii�-s 
end
)	�AssertionErrorr�read�write�encode�binasciiZb2a_uu�getvalue�len)	�input�errors�filename�mode�infile�outfiler	r
�chunk�r�*/usr/lib64/python3.6/encodings/uu_codec.py�	uu_encodesrc
Cs�|dkst�t|�}t�}|j}|j}x(|�}|s:td��|dd�dkr(Pq(Wx�|�}|sf|dkrhPytj|�}WnRtjk
r�}z4|ddd@d	dd
}	tj|d|	��}WYdd}~XnX||�qRW|s�td��|j�t	|�fS)Nrz"Missing "begin" line in input data�sbeginsend
r� �?��zTruncated input data)
rr�readliner
�
ValueErrorrZa2b_uu�Errorr
r)
rrrrrr
�s�data�v�nbytesrrr�	uu_decode!s0$r%c@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S)N)r)�selfrrrrrrCszCodec.encodecCs
t||�S)N)r%)r'rrrrr�decodeFszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rr(rrrrr&Bs
r&c@seZdZddd�ZdS)�IncrementalEncoderFcCst||j�dS)Nr)rr)r'r�finalrrrrJszIncrementalEncoder.encodeN)F)r)r*r+rrrrrr,Isr,c@seZdZddd�ZdS)�IncrementalDecoderFcCst||j�dS)Nr)r%r)r'rr-rrrr(NszIncrementalDecoder.decodeN)F)r)r*r+r(rrrrr.Msr.c@seZdZeZdS)�StreamWriterN)r)r*r+�bytes�charbuffertyperrrrr/Qsr/c@seZdZeZdS)�StreamReaderN)r)r*r+r0r1rrrrr2Tsr2c
Cstjdttttttdd�S)N�uuF)�namerr(�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInforr%r,r.r2r/rrrr�getregentryYsr<)rrr)r)
�__doc__r:r�iorrr%r&r,r.r/r2r<rrrr�<module>s

!