Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/encodings/__pycache__/bz2_codec.cpython-311.pyc

�

c��f�����dZddlZddlZdd�Zdd�ZGd�dej��ZGd�d	ej��ZGd
�dej��ZGd�d
eej��ZGd�deej	��Z	d�Z
dS)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).
�N�strictc�X�|dksJ�tj|��t|��fS�Nr)�bz2�compress�len��input�errorss  �:/opt/alt/python311/lib64/python3.11/encodings/bz2_codec.py�
bz2_encoder
s.���X������L�����U���,�,�c�X�|dksJ�tj|��t|��fSr)r�
decompressrr	s  r�
bz2_decoders.���X������N�5�!�!�3�u�:�:�.�.rc��eZdZdd�Zdd�ZdS)�Codecrc�"�t||��S�N)r
��selfr
rs   r�encodezCodec.encode����%��(�(�(rc�"�t||��Sr)rrs   r�decodezCodec.decoderrN�r)�__name__�
__module__�__qualname__rr�rrrrs<������)�)�)�)�)�)�)�)�)�)rrc�$�eZdZdd�Zdd�Zd�ZdS)	�IncrementalEncoderrc�T�|dksJ�||_tj��|_dSr)rr�
BZ2Compressor�compressobj�rrs  r�__init__zIncrementalEncoder.__init__s1����!�!�!�!�����,�.�.����rFc��|r6|j�|��}||j���zS|j�|��Sr)r%r�flush)rr
�final�cs    rrzIncrementalEncoder.encode#sQ���	4�� �)�)�%�0�0�A��t�'�-�-�/�/�/�/��#�,�,�U�3�3�3rc�6�tj��|_dSr)rr$r%�rs r�resetzIncrementalEncoder.reset*s���,�.�.����rNr�F)rrrr'rr.r rrr"r"sK������/�/�/�/�
4�4�4�4�/�/�/�/�/rr"c�$�eZdZdd�Zdd�Zd�ZdS)	�IncrementalDecoderrc�T�|dksJ�||_tj��|_dSr)rr�BZ2Decompressor�
decompressobjr&s  rr'zIncrementalDecoder.__init__.s1����!�!�!�!���� �0�2�2����rFc�Z�	|j�|��S#t$rYdSwxYw)N�)r4r�EOFError)rr
r*s   rrzIncrementalDecoder.decode3s@��	��%�0�0��7�7�7���	�	�	��2�2�	���s��
*�*c�6�tj��|_dSr)rr3r4r-s rr.zIncrementalDecoder.reset9s�� �0�2�2����rNrr/)rrrr'rr.r rrr1r1-sK������3�3�3�3�
����3�3�3�3�3rr1c��eZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyper rrr:r:<��������N�N�Nrr:c��eZdZeZdS)�StreamReaderNr;r rrr@r@?r>rr@c
�v�tjdtttt
ttd���S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInfor
rr"r1r:r@r rr�getregentryrJDs4����
���-�-�!�!��	�	�	�	rr)�__doc__rHrr
rrr"r1r:r@rJr rr�<module>rLsH�����
�
�
�
�
�
�
�-�-�-�-�/�/�/�/�)�)�)�)�)�F�L�)�)�)�/�/�/�/�/��2�/�/�/� 
3�
3�
3�
3�
3��2�
3�
3�
3������5�&�-���������5�&�-����

�
�
�
�
r

Hacked By AnonymousFox1.0, Coded By AnonymousFox