AlkantarClanX12

Your IP : 3.147.53.90


Current Path : /opt/alt/python312/lib64/python3.12/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/encodings/__pycache__/zlib_codec.cpython-312.pyc

�

�Q�f����dZddlZddlZdd�Zdd�ZGd�dej
�ZGd�dej�ZGd	�d
ej�ZGd�deej�ZGd
�deej�Z	d�Z
y)z�Python 'zlib_codec' Codec - zlib compression encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
�Nc�P�|dk(sJ�tj|�t|�fS�N�strict)�zlib�compress�len��input�errorss  �;/opt/alt/python312/lib64/python3.12/encodings/zlib_codec.py�zlib_encoder

s(���X�����M�M�%� �#�e�*�-�-�c�P�|dk(sJ�tj|�t|�fSr)r�
decompressrr	s  r�zlib_decoders(���X�����O�O�E�"�C��J�/�/rc��eZdZdd�Zdd�Zy)�Codecc��t||�S�N)r
��selfr
rs   r�encodezCodec.encode����5�&�)�)rc��t||�Sr)rrs   r�decodezCodec.decoderrN�r)�__name__�
__module__�__qualname__rr�rrrrs��*�*rrc�"�eZdZdd�Zdd�Zd�Zy)�IncrementalEncoderc�R�|dk(sJ�||_tj�|_yr)rr�compressobj�rrs  r�__init__zIncrementalEncoder.__init__s(����!�!�!�����+�+�-��rc��|r8|jj|�}||jj�zS|jj|�Sr)r$r�flush�rr
�final�cs    rrzIncrementalEncoder.encode!sL���� � �)�)�%�0�A��t�'�'�-�-�/�/�/��#�#�,�,�U�3�3rc�6�tj�|_yr)rr$�rs r�resetzIncrementalEncoder.reset(s���+�+�-��rNr�F)rrrr&rr.r rrr"r"s��.�
4�.rr"c�"�eZdZdd�Zdd�Zd�Zy)�IncrementalDecoderc�R�|dk(sJ�||_tj�|_yr)rr�
decompressobjr%s  rr&zIncrementalDecoder.__init__,s(����!�!�!����!�/�/�1��rc��|r8|jj|�}||jj�zS|jj|�Sr)r3rr(r)s    rrzIncrementalDecoder.decode1sL����"�"�-�-�e�4�A��t�)�)�/�/�1�1�1��%�%�0�0��7�7rc�6�tj�|_yr)rr3r-s rr.zIncrementalDecoder.reset8s��!�/�/�1��rNrr/)rrrr&rr.r rrr1r1+s��2�
8�2rr1c��eZdZeZy)�StreamWriterN�rrr�bytes�charbuffertyper rrr7r7;����Nrr7c��eZdZeZy)�StreamReaderNr8r rrr=r=>r;rr=c
�l�tjdtttt
ttd��S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamreader�streamwriter�_is_text_encoding)�codecs�	CodecInfor
rr"r1r=r7r rr�getregentryrGCs-�����
���-�-�!�!��	�	rr)�__doc__rErr
rrr"r1r7r=rGr rr�<module>rIs}�����.�0�*�F�L�L�*�.��2�2�.� 2��2�2�2� �5�&�-�-���5�&�-�-��

r