Your IP : 3.15.34.105


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.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�|dksJ�t�|�t|�fS�Nr)�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||�S�N)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� |dksJ�||_t��|_dSr)r
r�compressobj�rr
rrr�__init__�zIncrementalEncoder.__init__FcC�*|r|j�|�}||j��S|j�|�Sr)r r�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)r1rr%r&rrrr1r)zIncrementalDecoder.decodecCr*r)rr1r+rrrr,8r-zIncrementalDecoder.resetNrr.)rrrr"rr,rrrrr0+r/r0c@�eZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyperrrrr3;�r3c@r2)�StreamReaderNr4rrrrr8>r7r8c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInfor
rrr0r8r3rrrr�getregentryCs�rAr)�__doc__r?rr
rrrr0r3r8rArrrr�<module>s



?>