Hacked By AnonymousFox

Current Path : /lib64/python3.8/encodings/__pycache__/
Upload File :
Current File : //lib64/python3.8/encodings/__pycache__/bz2_codec.cpython-38.opt-1.pyc

U

e5d��@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�strictcCst�|�t|�fS�N)�bz2�compress�len��input�errors�r
�+/usr/lib64/python3.8/encodings/bz2_codec.py�
bz2_encodesrcCst�|�t|�fSr)r�
decompressrrr
r
r�
bz2_decodesrc@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�Sr)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||_t��|_dSr)r	r�
BZ2Compressor�compressobj�rr	r
r
r�__init__szIncrementalEncoder.__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||_t��|_dSr)r	r�BZ2Decompressor�
decompressobjrr
r
rr.szIncrementalDecoder.__init__FcCs*z|j�|�WStk
r$YdSXdS)N�)r#r
�EOFError)rrrr
r
rr3szIncrementalDecoder.decodecCst��|_dSr)rr"r#rr
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�r3)r)r)�__doc__r1rrrrrr!r&r*r3r
r
r
r�<module>s	



Hacked By AnonymousFox1.0, Coded By AnonymousFox