grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a ´iÉã@s’dZddlZddlZddd„Zddd„ZGdd „d ejƒZGd d „d ejƒ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ÚstrictcCs|dks J‚t |¡t|ƒfS©Nr)Úbz2ÚcompressÚlen©ÚinputÚerrors©r ú+/usr/lib64/python3.9/encodings/bz2_codec.pyÚ bz2_encodes r cCs|dks J‚t |¡t|ƒfSr)rÚ decompressrrr r r Ú bz2_decodes rc@s eZdZddd„Zddd„ZdS) ÚCodecrcCs t||ƒS©N)r ©Úselfrr r r r Úencodesz Codec.encodecCs t||ƒSr)rrr r r Údecodesz Codec.decodeN)r)r)Ú__name__Ú __module__Ú __qualname__rrr r r r rs rc@s(eZdZd dd„Zd dd„Zdd„Zd S) ÚIncrementalEncoderrcCs |dks J‚||_t ¡|_dSr)r rÚ BZ2CompressorÚ compressobj©rr r r r Ú__init__s zIncrementalEncoder.__init__FcCs.|r|j |¡}||j ¡S|j |¡SdSr)rrÚflush)rrÚfinalÚcr r r r#s zIncrementalEncoder.encodecCst ¡|_dSr)rrr©rr r r Úreset*szIncrementalEncoder.resetN)r)F)rrrrrr!r r r r rs  rc@s(eZdZd dd„Zd dd„Zdd„Zd S) ÚIncrementalDecoderrcCs |dks J‚||_t ¡|_dSr)r rÚBZ2DecompressorÚ decompressobjrr r r r.s zIncrementalDecoder.__init__FcCs(z|j |¡WSty"YdS0dS)NÚ)r$r ÚEOFError)rrrr r r r3s zIncrementalDecoder.decodecCst ¡|_dSr)rr#r$r r r r r!9szIncrementalDecoder.resetN)r)F)rrrrrr!r r r r r"-s  r"c@seZdZeZdS)Ú StreamWriterN©rrrÚbytesÚcharbuffertyper r r r r'<sr'c@seZdZeZdS)Ú StreamReaderNr(r r r r r+?sr+c Cstjdttttttdd�S)NrF)ÚnamerrÚincrementalencoderÚincrementaldecoderÚ streamwriterÚ streamreaderÚ_is_text_encoding)ÚcodecsÚ CodecInfor rrr"r'r+r r r r Ú getregentryDsør4)r)r) Ú__doc__r2rr rrrr"r'r+r4r r r r Ús