o ?Og@s ddlZddlZdddZdddZGdddejZGd d d ejZGd d d ejZGd ddeejZGdddeejZddZ dS)NstrictcCt|t|fSN)zlibcompressleninputerrorsr ;/opt/alt/python310/lib64/python3.10/encodings/zlib_codec.py zlib_encode r cCrr)r decompressrrr r r zlib_decoderrc@s eZdZdddZdddZdS)CodecrcC t||Sr)r selfr r r r r encode z Codec.encodecCrr)rrr r r decoderz Codec.decodeNr)__name__ __module__ __qualname__rrr r r r rs rc@(eZdZd ddZd ddZddZd S) IncrementalEncoderrcC||_t|_dSr)r r compressobjrr r r r __init__zIncrementalEncoder.__init__FcC*|r|j|}||jS|j|Sr)rrflushrr finalcr r r r!  zIncrementalEncoder.encodecCt|_dSr)rrrr r r reset(zIncrementalEncoder.resetNrF)rrrr!rr+r r r r r   rc@r) IncrementalDecoderrcCrr)r r decompressobjr r r r r!,r"zIncrementalDecoder.__init__FcCr#r)r0rr$r%r r r r1r(zIncrementalDecoder.decodecCr)r)rr0r*r r r r+8r,zIncrementalDecoder.resetNrr-)rrrr!rr+r r r r r/+r.r/c@eZdZeZdS) StreamWriterNrrrbytescharbuffertyper r r r r2;r2c@r1) StreamReaderNr3r r r r r7>r6r7c CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder streamreader streamwriter_is_text_encoding)codecs CodecInfor rrr/r7r2r r r r getregentryCsr@r) r>rr rrrr/r2r7r@r r r r s