mς &U²Ic@sΒdZdkZdkZydklZWn ej odklZnXdd„Zdd„Zdeifd„ƒYZdeei fd „ƒYZ d eei fd „ƒYZ d „Z dS( sgCodec for quoted-printable encoding. Like base64 and rot13, this returns Python strings, not Unicode. N(sStringIOtstrictcCsX|djpt‚t|ƒ}tƒ}ti||dƒ|iƒ}|t |ƒfS(sκEncode the input, returning 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. RiN( terrorstAssertionErrortStringIOtinputtftgtquopritencodetgetvaluetoutputtlen(RRRRR ((t3/data/zmath/lib/python2.4/encodings/quopri_codec.pyt quopri_encode s   cCsU|djpt‚t|ƒ}tƒ}ti||ƒ|iƒ}|t |ƒfS(sκDecode the input, returning 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. RN( RRRRRRRtdecodeR R R (RRRRR ((R t quopri_decodes   tCodeccBs tZdd„Zdd„ZRS(NRcCs t||ƒS(N(R RR(tselfRR((R R,scCs t||ƒS(N(RRR(RRR((R R.s(t__name__t __module__RR(((R R*s t StreamWritercBstZRS(N(RR(((R R1st StreamReadercBstZRS(N(RR(((R R4scCsttttfS(N(R RRR(((R t getregentry9s( t__doc__tcodecsRt cStringIORt ImportErrorR RRRRR( RR RRRRRRR((R t?s