U e5d@sddlZddlZdddZdddZGdddejZGd d d ejZGd d d ejZGd ddeejZGdddeejZddZ dS)NstrictcCst|t|fSN)zlibcompressleninputerrorsr ,/usr/lib64/python3.8/encodings/zlib_codec.py zlib_encode sr cCst|t|fSr)r decompressrrr r r zlib_decodesrc@s eZdZdddZdddZdS) CodecrcCs t||Sr)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 ddZd ddZddZd S) IncrementalEncoderrcCs||_t|_dSr)r r compressobjrr r r r __init__szIncrementalEncoder.__init__FcCs.|r|j|}||jS|j|SdSr)rrflushrrfinalcr r r r!s zIncrementalEncoder.encodecCst|_dSr)rrrr r r reset(szIncrementalEncoder.resetN)r)F)rrrrrr r r r r rs  rc@s(eZdZd ddZd ddZddZd S) IncrementalDecoderrcCs||_t|_dSr)r r decompressobjrr r r r,szIncrementalDecoder.__init__FcCs.|r|j|}||jS|j|SdSr)r"r rrr r r r1s zIncrementalDecoder.decodecCst|_dSr)rr"rr r r r 8szIncrementalDecoder.resetN)r)F)rrrrrr r r r r r!+s  r!c@seZdZeZdS) StreamWriterNrrrbytescharbuffertyper r r r r#;sr#c@seZdZeZdS) StreamReaderNr$r r r r r'>sr'c CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoder streamreader streamwriter_is_text_encoding)codecs CodecInfor rrr!r'r#r r r r getregentryCsr0)r)r) r.rr rrrr!r#r'r0r r r r s