Your IP : 3.143.7.112


Current Path : /opt/alt/python34/lib64/python3.4/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib64/python3.4/encodings/__pycache__/zlib_codec.cpython-34.pyo

�
j f��@s�dZddlZddlZddd�Zddd�ZGdd	�d	ej�ZGd
d�dej�ZGdd
�d
ej�ZGdd�deej�ZGdd�deej	�Z	dd�Z
dS)z�Python 'zlib_codec' Codec - zlib compression encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
�N�strictcCstj|�t|�fS)N)�zlib�compress�len)�input�errors�r�9/opt/alt/python34/lib64/python3.4/encodings/zlib_codec.py�zlib_encode
sr
cCstj|�t|�fS)N)r�
decompressr)rrrrr	�zlib_decodesrc@s.eZdZddd�Zddd�ZdS)�CodecrcCs
t||�S)N)r
)�selfrrrrr	�encodeszCodec.encodecCs
t||�S)N)r)rrrrrr	�decodeszCodec.decodeN)�__name__�
__module__�__qualname__rrrrrr	r
sr
c@s:eZdZddd�Zddd�Zdd�Zd	S)
�IncrementalEncoderrcCs||_tj�|_dS)N)rr�compressobj)rrrrr	�__init__s	zIncrementalEncoder.__init__FcCs=|r)|jj|�}||jj�S|jj|�SdS)N)rr�flush)rr�final�crrr	r!szIncrementalEncoder.encodecCstj�|_dS)N)rr)rrrr	�reset(szIncrementalEncoder.resetN)rrrrrrrrrr	rsrc@s:eZdZddd�Zddd�Zdd�Zd	S)
�IncrementalDecoderrcCs||_tj�|_dS)N)rr�
decompressobj)rrrrr	r,s	zIncrementalDecoder.__init__FcCs=|r)|jj|�}||jj�S|jj|�SdS)N)rrr)rrrrrrr	r1szIncrementalDecoder.decodecCstj�|_dS)N)rr)rrrr	r8szIncrementalDecoder.resetN)rrrrrrrrrr	r+src@seZdZeZdS)�StreamWriterN)rrr�bytes�charbuffertyperrrr	r;src@seZdZeZdS)�StreamReaderN)rrrrrrrrr	r >sr cCs:tjdddtdtdtdtdtdtd	d
�S)N�namerrr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encodingF)�codecs�	CodecInfor
rrrr rrrrr	�getregentryCs	r))�__doc__r'rr
rr
rrrr r)rrrr	�<module>s

?>