python (3.12.0)

(root)/
lib/
python3.12/
encodings/
__pycache__/
bz2_codec.cpython-312.pyc

ˑedZddlZddlZddZddZGddej
ZGddejZGd	d
ejZGddeejZGd
deejZ	dZ
y)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).
NcP|dk(sJtj|t|fSNstrict)bz2compressleninputerrorss  G/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/encodings/bz2_codec.py
bz2_encoder
s%XLLU,,cP|dk(sJtj|t|fSr)r
decompressrr	s  r
bz2_decoders%XNN5!3u:..rceZdZddZddZy)Codecct||SN)r
selfr
rs   rencodezCodec.encode%((rct||Sr)rrs   rdecodezCodec.decoderrNr)__name__
__module____qualname__rrrrrrs))rrc"eZdZddZddZdZy)IncrementalEncodercR|dk(sJ||_tj|_yr)rr
BZ2Compressorcompressobjrrs  r__init__zIncrementalEncoder.__init__s%!!,,.rc|r8|jj|}||jjzS|jj|Sr)r%rflush)rr
finalcs    rrzIncrementalEncoder.encode#sL  ))%0At''--///##,,U33rc6tj|_yr)rr$r%rs rresetzIncrementalEncoder.reset*s,,.rNrF)rrrr'rr.r rrr"r"s/
4/rr"c"eZdZddZddZdZy)IncrementalDecodercR|dk(sJ||_tj|_yr)rrBZ2Decompressor
decompressobjr&s  rr'zIncrementalDecoder.__init__.s%!! 002rcX	|jj|S#t$rYywxYw)N)r4rEOFError)rr
r*s   rrzIncrementalDecoder.decode3s0	%%0077		s	))c6tj|_yr)rr3r4r-s rr.zIncrementalDecoder.reset9s 002rNrr/)rrrr'rr.r rrr1r1-s3
3rr1ceZdZeZy)StreamWriterNrrrbytescharbuffertyper rrr:r:<Nrr:ceZdZeZy)StreamReaderNr;r rrr@r@?r>rr@c
ltjdtttt
ttdS)NrF)namerrincrementalencoderincrementaldecoderstreamwriterstreamreader_is_text_encoding)codecs	CodecInfor
rr"r1r:r@r rrgetregentryrJDs-
--!!		rr)__doc__rHrr
rrr"r1r:r@rJr rr<module>rLs}
-/)FLL)/22/ 
322
35&--5&--

r