python (3.12.0)

(root)/
lib/
python3.12/
encodings/
__pycache__/
bz2_codec.cpython-312.opt-1.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).
NcBtj|t|fSN)bz2compressleninputerrorss  G/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/encodings/bz2_codec.py
bz2_encodersLLU,,cBtj|t|fSr)r
decompressrrs  r
bz2_decodersNN5!3u:..r
ceZdZddZddZy)Codecct||Sr)rselfr	r
s   rencodezCodec.encode%((r
ct||Sr)rrs   rdecodezCodec.decoderr
Nstrict)__name__
__module____qualname__rrr
rrrs))r
rc"eZdZddZddZdZy)IncrementalEncodercD||_tj|_yr)r
r
BZ2Compressorcompressobjrr
s  r__init__zIncrementalEncoder.__init__s,,.r
c|r8|jj|}||jjzS|jj|Sr)r$rflush)rr	finalcs    rrzIncrementalEncoder.encode#sL  ))%0At''--///##,,U33r
c6tj|_yr)rr#r$rs rresetzIncrementalEncoder.reset*s,,.r
NrF)rrrr&rr-rr
rr!r!s/
4/r
r!c"eZdZddZddZdZy)IncrementalDecodercD||_tj|_yr)r
rBZ2Decompressor
decompressobjr%s  rr&zIncrementalDecoder.__init__.s 002r
cX	|jj|S#t$rYywxYw)N)r3rEOFError)rr	r)s   rrzIncrementalDecoder.decode3s0	%%0077		s	))c6tj|_yr)rr2r3r,s rr-zIncrementalDecoder.reset9s 002r
Nrr.)rrrr&rr-rr
rr0r0-s3
3r
r0ceZdZeZy)StreamWriterNrrrbytescharbuffertyperr
rr9r9<Nr
r9ceZdZeZy)StreamReaderNr:rr
rr?r??r=r
r?c
ltjdtttt
ttdS)NrF)namerrincrementalencoderincrementaldecoderstreamwriterstreamreader_is_text_encoding)codecs	CodecInforrr!r0r9r?rr
rgetregentryrIDs-
--!!		r
r)__doc__rGrrrrr!r0r9r?rIrr
r<module>rKs}
-/)FLL)/22/ 
322
35&--5&--

r