³ò º5#Dc@sÆdZddkZddkZdd„Zdd„Zdeifd„ƒYZdeifd „ƒYZd eifd „ƒYZd eeifd „ƒYZdeei fd„ƒYZ d„Z dS(sÿ Python 'base64_codec' Codec - base64 content transfer 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(tAssertionErrortbase64t encodestringtlen(tinputterrorstoutput((sencodings\base64_codec.pyct base64_encode s 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 decodestringR(RRR((sencodings\base64_codec.pyct base64_decodestCodeccBs eZdd„Zdd„ZRS(RcCs t||ƒS(N(R(tselfRR((sencodings\base64_codec.pyctencode/scCs t||ƒS(N(R (R RR((sencodings\base64_codec.pyctdecode1s(t__name__t __module__R R(((sencodings\base64_codec.pycR -s tIncrementalEncodercBseZed„ZRS(cCs$|idjpt‚ti|ƒS(NR(RRRR(R Rtfinal((sencodings\base64_codec.pycR 5s(RRtFalseR (((sencodings\base64_codec.pycR4stIncrementalDecodercBseZed„ZRS(cCs$|idjpt‚ti|ƒS(NR(RRRR (R RR((sencodings\base64_codec.pycR:s(RRRR(((sencodings\base64_codec.pycR9st StreamWritercBseZRS((RR(((sencodings\base64_codec.pycR>st StreamReadercBseZRS((RR(((sencodings\base64_codec.pycRAscCs4tidddtdtdtdtdtdtƒS( NtnameRR Rtincrementalencodertincrementaldecodert streamwritert streamreader(tcodecst CodecInfoRR RRRR(((sencodings\base64_codec.pyct getregentryFs ( t__doc__RRRR R RRRRR(((sencodings\base64_codec.pycss