Hacked By AnonymousFox

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

B

� 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�strictcCs|dkst�t�|�t|�fS)Nr)�AssertionError�zlib�compress�len)�input�errors�r	�9/opt/alt/python37/lib64/python3.7/encodings/zlib_codec.py�zlib_encode
srcCs|dkst�t�|�t|�fS)Nr)rr�
decompressr)rrr	r	r
�zlib_decodesr
c@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S)N)r)�selfrrr	r	r
�encodeszCodec.encodecCs
t||�S)N)r
)rrrr	r	r
�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrr	r	r	r
rs
rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalEncoderrcCs |dkst�||_t��|_dS)Nr)rrr�compressobj)rrr	r	r
�__init__szIncrementalEncoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdS)N)rr�flush)rr�final�cr	r	r
r!szIncrementalEncoder.encodecCst��|_dS)N)rr)rr	r	r
�reset(szIncrementalEncoder.resetN)r)F)rrrrrrr	r	r	r
rs

rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalDecoderrcCs |dkst�||_t��|_dS)Nr)rrr�
decompressobj)rrr	r	r
r,szIncrementalDecoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdS)N)rrr)rrrrr	r	r
r1szIncrementalDecoder.decodecCst��|_dS)N)rr)rr	r	r
r8szIncrementalDecoder.resetN)r)F)rrrrrrr	r	r	r
r+s

rc@seZdZeZdS)�StreamWriterN)rrr�bytes�charbuffertyper	r	r	r
r;src@seZdZeZdS)�StreamReaderN)rrrrr r	r	r	r
r!>sr!c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInforr
rrr!rr	r	r	r
�getregentryCsr*)r)r)�__doc__r(rrr
rrrrr!r*r	r	r	r
�<module>s



Hacked By AnonymousFox1.0, Coded By AnonymousFox