Your IP : 18.190.253.224


Current Path : /opt/alt/python39/lib64/python3.9/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/encodings/__pycache__/bz2_codec.cpython-39.pyc

a

R�f��@s�dZddlZddlZddd�Zddd�ZGdd	�d	ej�ZGd
d�dej�ZGdd
�d
ej�ZGdd�deej�ZGdd�deej	�Z	dd�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�strictcCs|dksJ�t�|�t|�fS�Nr)�bz2�compress�len��input�errors�r
�8/opt/alt/python39/lib64/python3.9/encodings/bz2_codec.py�
bz2_encodesrcCs|dksJ�t�|�t|�fSr)r�
decompressrrr
r
r�
bz2_decodesrc@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S�N)r��selfrr	r
r
r�encodeszCodec.encodecCs
t||�Sr)rrr
r
r�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrr
r
r
rrs
rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalEncoderrcCs |dksJ�||_t��|_dSr)r	r�
BZ2Compressor�compressobj�rr	r
r
r�__init__szIncrementalEncoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdSr)rr�flush)rr�final�cr
r
rr#szIncrementalEncoder.encodecCst��|_dSr)rrr�rr
r
r�reset*szIncrementalEncoder.resetN)r)F)rrrrrr!r
r
r
rrs

rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalDecoderrcCs |dksJ�||_t��|_dSr)r	r�BZ2Decompressor�
decompressobjrr
r
rr.szIncrementalDecoder.__init__FcCs(z|j�|�WSty"YdS0dS)N�)r$r
�EOFError)rrrr
r
rr3szIncrementalDecoder.decodecCst��|_dSr)rr#r$r r
r
rr!9szIncrementalDecoder.resetN)r)F)rrrrrr!r
r
r
rr"-s

r"c@seZdZeZdS)�StreamWriterN�rrr�bytes�charbuffertyper
r
r
rr'<sr'c@seZdZeZdS)�StreamReaderNr(r
r
r
rr+?sr+c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInforrrr"r'r+r
r
r
r�getregentryDs�r4)r)r)�__doc__r2rrrrrr"r'r+r4r
r
r
r�<module>s	



?>