Your IP : 3.128.168.176


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

�

�Q�f����dZddlZddlZdd�Zdd�ZGd�dej
�ZGd�dej�ZGd	�d
ej�ZGd�deej�ZGd
�deej�Z	d�Z
y)aPython 'bz2_codec' Codec - bz2 compression encoding.

This codec de/encodes from bytes to bytes and is therefore usable with
bytes.transform() and bytes.untransform().

Adapted by Raymond Hettinger from zlib_codec.py which was written
by Marc-Andre Lemburg (mal@lemburg.com).
�Nc�B�tj|�t|�fS�N)�bz2�compress�len��input�errorss  �:/opt/alt/python312/lib64/python3.12/encodings/bz2_codec.py�
bz2_encoders���L�L����U��,�,�c�B�tj|�t|�fSr)r�
decompressrrs  r�
bz2_decoders���N�N�5�!�3�u�:�.�.r
c��eZdZdd�Zdd�Zy)�Codecc��t||�Sr)r��selfr	r
s   r�encodezCodec.encode����%��(�(r
c��t||�Sr)rrs   r�decodezCodec.decoderr
N��strict)�__name__�
__module__�__qualname__rr�r
rrrs��)�)r
rc�"�eZdZdd�Zdd�Zd�Zy)�IncrementalEncoderc�D�||_tj�|_yr)r
r�
BZ2Compressor�compressobj�rr
s  r�__init__zIncrementalEncoder.__init__s������,�,�.��r
c��|r8|jj|�}||jj�zS|jj|�Sr)r$r�flush)rr	�final�cs    rrzIncrementalEncoder.encode#sL���� � �)�)�%�0�A��t�'�'�-�-�/�/�/��#�#�,�,�U�3�3r
c�6�tj�|_yr)rr#r$�rs r�resetzIncrementalEncoder.reset*s���,�,�.��r
Nr�F)rrrr&rr-rr
rr!r!s��/�
4�/r
r!c�"�eZdZdd�Zdd�Zd�Zy)�IncrementalDecoderc�D�||_tj�|_yr)r
r�BZ2Decompressor�
decompressobjr%s  rr&zIncrementalDecoder.__init__.s����� �0�0�2��r
c�X�	|jj|�S#t$rYywxYw)N�)r3r�EOFError)rr	r)s   rrzIncrementalDecoder.decode3s0��	��%�%�0�0��7�7���	��	�s��	)�)c�6�tj�|_yr)rr2r3r,s rr-zIncrementalDecoder.reset9s�� �0�0�2��r
Nrr.)rrrr&rr-rr
rr0r0-s��3�
�3r
r0c��eZdZeZy)�StreamWriterN�rrr�bytes�charbuffertyperr
rr9r9<����Nr
r9c��eZdZeZy)�StreamReaderNr:rr
rr?r??r=r
r?c
�l�tjdtttt
ttd��S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInforrr!r0r9r?rr
r�getregentryrIDs-�����
���-�-�!�!��	�	r
r)�__doc__rGrrrrr!r0r9r?rIrr
r�<module>rKs}����
�-�/�)�F�L�L�)�/��2�2�/� 
3��2�2�
3��5�&�-�-���5�&�-�-��

r

?>