MINI MINI MANI MO

Path : /usr/lib64/python3.6/encodings/__pycache__/
File Upload :
Current File : //usr/lib64/python3.6/encodings/__pycache__/bz2_codec.cpython-36.opt-1.pyc

3


 \@sdZddlZddlZdddZdddZGdd	d	ejZGd
ddejZGdd
d
ejZGdddeejZGdddeej	Z	ddZ
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).
NstrictcCstj|t|fS)N)bz2compresslen)inputerrorsr+/usr/lib64/python3.6/encodings/bz2_codec.py
bz2_encodesr
cCstj|t|fS)N)r
decompressr)rrrrr	
bz2_decodesrc@s eZdZdddZdddZdS)	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
ddZdddZddZd	S)IncrementalEncoderrcCs||_tj|_dS)N)rr
BZ2Compressorcompressobj)rrrrr	__init__szIncrementalEncoder.__init__FcCs.|r|jj|}||jjS|jj|SdS)N)rrflush)rrfinalcrrr	r#szIncrementalEncoder.encodecCstj|_dS)N)rrr)rrrr	reset*szIncrementalEncoder.resetN)r)F)rrrrrrrrrr	rs

rc@s(eZdZd
ddZdddZddZd	S)IncrementalDecoderrcCs||_tj|_dS)N)rrBZ2Decompressor
decompressobj)rrrrr	r.szIncrementalDecoder.__init__FcCs&y|jj|Stk
r dSXdS)N)rrEOFError)rrrrrr	r3szIncrementalDecoder.decodecCstj|_dS)N)rrr)rrrr	r9szIncrementalDecoder.resetN)r)F)rrrrrrrrrr	r-s

rc@seZdZeZdS)StreamWriterN)rrrbytescharbuffertyperrrr	r!<sr!c@seZdZeZdS)StreamReaderN)rrrr"r#rrrr	r$?sr$c
CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder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



OHA YOOOO