ACC SHELL

Path : /usr/lib/python/encodings/
File Upload :
Current File : //usr/lib/python/encodings/zlib_codec.pyc

Ñò
rÄMc@sÆdZddkZddkZdd„Zdd„Zdeifd„ƒYZdeifd	„ƒYZd
eifd„ƒYZdeeifd
„ƒYZdeei	fd„ƒYZ	d„Z
dS(sö Python 'zlib_codec' Codec - zlib compression encoding

    Unlike most of the other codecs which target Unicode, this codec
    will return Python string objects for both encode and decode.

    Written by Marc-Andre Lemburg (mal@lemburg.com).

iÿÿÿÿNtstrictcCs3|djpt‚ti|ƒ}|t|ƒfS(s Encodes the object input and returns a tuple (output
        object, length consumed).

        errors defines the error handling to apply. It defaults to
        'strict' handling which is the only currently supported
        error handling for this codec.

    R(tAssertionErrortzlibtcompresstlen(tinputterrorstoutput((s*/usr/lib/python2.6/encodings/zlib_codec.pytzlib_encodes
cCs3|djpt‚ti|ƒ}|t|ƒfS(sË Decodes the object input and returns a tuple (output
        object, length consumed).

        input must be an object which provides the bf_getreadbuf
        buffer slot. Python strings, buffer objects and memory
        mapped files are examples of objects providing this slot.

        errors defines the error handling to apply. It defaults to
        'strict' handling which is the only currently supported
        error handling for this codec.

    R(RRt
decompressR(RRR((s*/usr/lib/python2.6/encodings/zlib_codec.pytzlib_decodestCodeccBs eZdd„Zdd„ZRS(RcCs
t||ƒS(N(R(tselfRR((s*/usr/lib/python2.6/encodings/zlib_codec.pytencode0scCs
t||ƒS(N(R
(RRR((s*/usr/lib/python2.6/encodings/zlib_codec.pytdecode2s(t__name__t
__module__R
R(((s*/usr/lib/python2.6/encodings/zlib_codec.pyR.stIncrementalEncodercBs)eZdd„Zed„Zd„ZRS(RcCs0|djpt‚||_tiƒ|_dS(NR(RRRtcompressobj(RR((s*/usr/lib/python2.6/encodings/zlib_codec.pyt__init__6s	cCs?|o$|ii|ƒ}||iiƒS|ii|ƒSdS(N(RRtflush(RRtfinaltc((s*/usr/lib/python2.6/encodings/zlib_codec.pyR
;scCstiƒ|_dS(N(RR(R((s*/usr/lib/python2.6/encodings/zlib_codec.pytresetBs(RRRtFalseR
R(((s*/usr/lib/python2.6/encodings/zlib_codec.pyR5stIncrementalDecodercBs)eZdd„Zed„Zd„ZRS(RcCs0|djpt‚||_tiƒ|_dS(NR(RRRt
decompressobj(RR((s*/usr/lib/python2.6/encodings/zlib_codec.pyRFs	cCs?|o$|ii|ƒ}||iiƒS|ii|ƒSdS(N(RR	R(RRRR((s*/usr/lib/python2.6/encodings/zlib_codec.pyRKscCstiƒ|_dS(N(RR(R((s*/usr/lib/python2.6/encodings/zlib_codec.pyRRs(RRRRRR(((s*/usr/lib/python2.6/encodings/zlib_codec.pyREstStreamWritercBseZRS((RR(((s*/usr/lib/python2.6/encodings/zlib_codec.pyRUstStreamReadercBseZRS((RR(((s*/usr/lib/python2.6/encodings/zlib_codec.pyRXscCs4tidddtdtdtdtdtdtƒS(	NtnameRR
Rtincrementalencodertincrementaldecodertstreamreadertstreamwriter(tcodecst	CodecInfoRR
RRRR(((s*/usr/lib/python2.6/encodings/zlib_codec.pytgetregentry]s	(t__doc__R"RRR
RRRRRR$(((s*/usr/lib/python2.6/encodings/zlib_codec.pyt<module>s

ACC SHELL 2018