AlkantarClanX12

Your IP : 3.142.133.210


Current Path : /opt/alt/python37/lib64/python3.7/encodings/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/encodings/__pycache__/bz2_codec.cpython-37.opt-1.pyc

B

� 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�strictcCst�|�t|�fS)N)�bz2�compress�len)�input�errors�r�8/opt/alt/python37/lib64/python3.7/encodings/bz2_codec.py�
bz2_encodesr
cCst�|�t|�fS)N)r�
decompressr)rrrrr	�
bz2_decodesrc@s eZdZddd�Zddd�ZdS)	�CodecrcCs
t||�S)N)r
)�selfrrrrr	�encodeszCodec.encodecCs
t||�S)N)r)rrrrrr	�decodeszCodec.decodeN)r)r)�__name__�
__module__�__qualname__rrrrrr	r
s
r
c@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalEncoderrcCs||_t��|_dS)N)rr�
BZ2Compressor�compressobj)rrrrr	�__init__szIncrementalEncoder.__init__FcCs.|r|j�|�}||j��S|j�|�SdS)N)rr�flush)rr�final�crrr	r#szIncrementalEncoder.encodecCst��|_dS)N)rrr)rrrr	�reset*szIncrementalEncoder.resetN)r)F)rrrrrrrrrr	rs

rc@s(eZdZd
dd�Zddd�Zdd�Zd	S)�IncrementalDecoderrcCs||_t��|_dS)N)rr�BZ2Decompressor�
decompressobj)rrrrr	r.szIncrementalDecoder.__init__FcCs&y|j�|�Stk
r dSXdS)N�)rr�EOFError)rrrrrr	r3szIncrementalDecoder.decodecCst��|_dS)N)rrr)rrrr	r9szIncrementalDecoder.resetN)r)F)rrrrrrrrrr	r-s

rc@seZdZeZdS)�StreamWriterN)rrr�bytes�charbuffertyperrrr	r!<sr!c@seZdZeZdS)�StreamReaderN)rrrr"r#rrrr	r$?sr$c
Cstjdttttttdd�S)NrF)�namerr�incrementalencoder�incrementaldecoder�streamwriter�streamreader�_is_text_encoding)�codecs�	CodecInfor
rrrr!r$rrrr	�getregentryDsr-)r)r)�__doc__r+rr
rr
rrr!r$r-rrrr	�<module>s