a Z^c@sddlZddlZdddZdddZGdddejZGd d d ejZGd d d ejZGd ddeejZGdddeejZddZ dS)iNstrictcCt|t|fSN)zlibcompressleninputerrorsr ,/usr/lib64/python3.9/encodings/zlib_codec.py zlib_encode r cCrr)r decompressrrr r r zlib_decoder rc@s eZdZdddZdddZdS) CodecrcC t||Sr)r selfrrr r r encodez Codec.encodecCrr)rrr r r decoderz Codec.decodeNrr)__name__ __module__ __qualname__rrr r r r rs rc@(eZdZd ddZd ddZddZd S) IncrementalEncoderrcC||_t|_dSr)rr compressobjrrr r r __init__zIncrementalEncoder.__init__FcC.|r|j|}||jS|j|SdSr)rrflushrrZfinalZcr r r r! zIncrementalEncoder.encodecCt|_dSr)rrrr r r reset(rzIncrementalEncoder.resetNrF)rrrrrr'r r r r r  rc@r) IncrementalDecoderrcCrr)rr decompressobjrr r r r,r zIncrementalDecoder.__init__FcCr!r)r+r r"r#r r r r1r$zIncrementalDecoder.decodecCr%r)rr+r&r r r r'8rzIncrementalDecoder.resetNrr()rrrrrr'r r r r r*+r)r*c@eZdZeZdS) StreamWriterNrrrZbytesZcharbuffertyper r r r r-;r-c@r,) StreamReaderNr.r r r r r0>r/r0c CstjdttttttddS)NrF)ZnamerrZincrementalencoderZincrementaldecoderZ streamreaderZ streamwriterZ_is_text_encoding)codecsZ CodecInfor rrr*r0r-r r r r getregentryCsr2rr) r1rr rrrr*r-r0r2r r r r Zs