Viewing File: /opt/alt/python38/lib64/python3.8/encodings/__pycache__/zlib_codec.cpython-38.pyc

U

,a@sdZddlZddlZdddZdddZGdd	d	ejZGd
ddejZGdd
d
ejZGdddeejZGdddeej	Z	ddZ
dS)zPython 'zlib_codec' Codec - zlib compression encoding.

This codec de/encodes from bytes to bytes.

Written by Marc-Andre Lemburg (mal@lemburg.com).
NstrictcCs|dkstt|t|fSNr)AssertionErrorzlibcompressleninputerrorsr9/opt/alt/python38/lib64/python3.8/encodings/zlib_codec.pyzlib_encode
sr
cCs|dkstt|t|fSr)rr
decompressrrrrrzlib_decodesrc@s eZdZdddZdddZdS)	CodecrcCs
t||SN)r
selfr	r
rrrencodeszCodec.encodecCs
t||Sr)rrrrrdecodeszCodec.decodeN)r)r)__name__
__module____qualname__rrrrrrrs
rc@s(eZdZd
ddZdddZddZd	S)IncrementalEncoderrcCs |dkst||_t|_dSr)rr
rcompressobjrr
rrr__init__szIncrementalEncoder.__init__FcCs.|r|j|}||jS|j|SdSr)rrflushrr	finalcrrrr!szIncrementalEncoder.encodecCst|_dSr)rrrrrrreset(szIncrementalEncoder.resetN)r)F)rrrrrr"rrrrrs

rc@s(eZdZd
ddZdddZddZd	S)IncrementalDecoderrcCs |dkst||_t|_dSr)rr
r
decompressobjrrrrr,szIncrementalDecoder.__init__FcCs.|r|j|}||jS|j|SdSr)r$rrrrrrr1szIncrementalDecoder.decodecCst|_dSr)rr$r!rrrr"8szIncrementalDecoder.resetN)r)F)rrrrrr"rrrrr#+s

r#c@seZdZeZdS)StreamWriterNrrrbytescharbuffertyperrrrr%;sr%c@seZdZeZdS)StreamReaderNr&rrrrr)>sr)c
CstjdttttttddS)NrF)namerrincrementalencoderincrementaldecoderstreamreaderstreamwriter_is_text_encoding)codecs	CodecInfor
rrr#r)r%rrrrgetregentryCsr2)r)r)__doc__r0rr
rrrr#r%r)r2rrrr<module>s


Back to Directory File Manager