Viewing File: /opt/alt/python35/lib64/python3.5/encodings/__pycache__/zlib_codec.cpython-35.opt-2.pyc



й¼]œã@sÉddlZddlZddd„Zddd„ZGdd„dejƒZGd	d
„d
ejƒZGdd„dejƒZGd
d„deejƒZGdd„deejƒZdd„Z	dS)éNÚstrictcCstj|ƒt|ƒfS)N)ÚzlibÚcompressÚlen)ÚinputÚerrors©rú//opt/alt/python35/lib64/python3.5/zlib_codec.pyÚzlib_encode
sr
cCstj|ƒt|ƒfS)N)rÚ
decompressr)rrrrr	Úzlib_decodesrc@s.eZdZddd„Zddd„ZdS)ÚCodecrcCs
t||ƒS)N)r
)Úselfrrrrr	ÚencodeszCodec.encodecCs
t||ƒS)N)r)rrrrrr	ÚdecodeszCodec.decodeN)Ú__name__Ú
__module__Ú__qualname__rrrrrr	r
sr
c@s:eZdZddd„Zddd„Zdd„Zd	S)
ÚIncrementalEncoderrcCs||_tjƒ|_dS)N)rrÚcompressobj)rrrrr	Ú__init__s	zIncrementalEncoder.__init__FcCs=|r)|jj|ƒ}||jjƒS|jj|ƒSdS)N)rrÚflush)rrÚfinalÚcrrr	r!szIncrementalEncoder.encodecCstjƒ|_dS)N)rr)rrrr	Úreset(szIncrementalEncoder.resetN)rrrrrrrrrr	rsrc@s:eZdZddd„Zddd„Zdd„Zd	S)
ÚIncrementalDecoderrcCs||_tjƒ|_dS)N)rrÚ
decompressobj)rrrrr	r,s	zIncrementalDecoder.__init__FcCs=|r)|jj|ƒ}||jjƒS|jj|ƒSdS)N)rrr)rrrrrrr	r1szIncrementalDecoder.decodecCstjƒ|_dS)N)rr)rrrr	r8szIncrementalDecoder.resetN)rrrrrrrrrr	r+src@seZdZeZdS)ÚStreamWriterN)rrrÚbytesÚcharbuffertyperrrr	r;src@seZdZeZdS)ÚStreamReaderN)rrrrrrrrr	r >sr cCs:tjdddtdtdtdtdtdtd	d
ƒS)NÚnamerrrÚincrementalencoderÚincrementaldecoderÚstreamreaderÚstreamwriterÚ_is_text_encodingF)ÚcodecsÚ	CodecInfor
rrrr rrrrr	ÚgetregentryCs	r))
r'rr
rr
rrrr r)rrrr	Ú<module>s
Back to Directory File Manager