Your IP : 3.144.89.197


Current Path : /opt/alt/python310/lib64/python3.10/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/encodings/__pycache__/zlib_codec.cpython-310.opt-1.pyc

o

6��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�strictcC�t�|�t|�fS�N)�zlib�compress�len��input�errors�r�;/opt/alt/python310/lib64/python3.10/encodings/zlib_codec.py�zlib_encode
�r
cCrr)r�
decompressrrrrr�zlib_decoderrc@s eZdZddd�Zddd�ZdS)�CodecrcC�
t||�Sr)r
��selfr	r
rrr�encode�
zCodec.encodecCrr)rrrrr�decoderzCodec.decodeN�r)�__name__�
__module__�__qualname__rrrrrrrs
rc@�(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalEncoderrcC�||_t��|_dSr)r
r�compressobj�rr
rrr�__init__�zIncrementalEncoder.__init__FcC�*|r|j�|�}||j��S|j�|�Sr)rr�flush�rr	�final�crrrr!�zIncrementalEncoder.encodecC�t��|_dSr)rr�rrrr�reset(�zIncrementalEncoder.resetNr�F)rrrr!rr+rrrrr�

rc@r)�IncrementalDecoderrcCrr)r
r�
decompressobjr rrrr!,r"zIncrementalDecoder.__init__FcCr#r)r0rr$r%rrrr1r(zIncrementalDecoder.decodecCr)r)rr0r*rrrr+8r,zIncrementalDecoder.resetNrr-)rrrr!rr+rrrrr/+r.r/c@�eZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyperrrrr2;�r2c@r1)�StreamReaderNr3rrrrr7>r6r7c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInfor
rrr/r7r2rrrr�getregentryCs�r@r)�__doc__r>rr
rrrr/r2r7r@rrrr�<module>s



?>