³ò Ec@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((sencodings\zlib_codec.pyct zlib_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((sencodings\zlib_codec.pyct zlib_decodestCodeccBs eZdd„Zdd„ZRS(RcCs t||ƒS(N(R(tselfRR((sencodings\zlib_codec.pyctencode0scCs t||ƒS(N(R (R RR((sencodings\zlib_codec.pyctdecode2s(t__name__t __module__R R(((sencodings\zlib_codec.pycR .s tIncrementalEncodercBs)eZdd„Zed„Zd„ZRS(RcCs0|djpt‚||_tiƒ|_dS(NR(RRRt compressobj(R R((sencodings\zlib_codec.pyct__init__6s cCsB|o'|ii|ƒ}||iiƒSn|ii|ƒSdS(N(RRtflush(R Rtfinaltc((sencodings\zlib_codec.pycR ;scCstiƒ|_dS(N(RR(R ((sencodings\zlib_codec.pyctresetBs(RRRtFalseR R(((sencodings\zlib_codec.pycR5s  tIncrementalDecodercBs)eZdd„Zed„Zd„ZRS(RcCs0|djpt‚||_tiƒ|_dS(NR(RRRt decompressobj(R R((sencodings\zlib_codec.pycRFs cCsB|o'|ii|ƒ}||iiƒSn|ii|ƒSdS(N(RR R(R RRR((sencodings\zlib_codec.pycRKscCstiƒ|_dS(N(RR(R ((sencodings\zlib_codec.pycRRs(RRRRRR(((sencodings\zlib_codec.pycREs  t StreamWritercBseZRS((RR(((sencodings\zlib_codec.pycRUst StreamReadercBseZRS((RR(((sencodings\zlib_codec.pycRXscCs4tidddtdtdtdtdtdtƒS( NtnameRR Rtincrementalencodertincrementaldecodert streamreadert streamwriter(tcodecst CodecInfoRR RRRR(((sencodings\zlib_codec.pyct getregentry]s ( t__doc__R"RRR R RRRRR$(((sencodings\zlib_codec.pycss