ó o”þfc@sþdZddlZddlZyddlmZWn!ek rUddlmZnXdd„Zdd„Zdejfd„ƒYZd ej fd „ƒYZ d ej fd „ƒYZ d eej fd„ƒYZ deej fd„ƒYZ d„Z dS(sgCodec for quoted-printable encoding. Like base64 and rot13, this returns Python strings, not Unicode. iĸĸĸĸN(tStringIOtstrictcCs\|dkst‚tt|ƒƒ}tƒ}tj||dƒ|jƒ}|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. Ri(tAssertionErrorRtstrtquopritencodetgetvaluetlen(tinputterrorstftgtoutput((s./usr/lib64/python2.7/encodings/quopri_codec.pyt quopri_encode s   cCsY|dkst‚tt|ƒƒ}tƒ}tj||ƒ|jƒ}|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. R(RRRRtdecodeRR(RR R R R ((s./usr/lib64/python2.7/encodings/quopri_codec.pyt quopri_decodes   tCodeccBs eZdd„Zdd„ZRS(RcCs t||ƒS(N(R (tselfRR ((s./usr/lib64/python2.7/encodings/quopri_codec.pyR-scCs t||ƒS(N(R(RRR ((s./usr/lib64/python2.7/encodings/quopri_codec.pyR/s(t__name__t __module__RR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyR+s tIncrementalEncodercBseZed„ZRS(cCst||jƒdS(Ni(R R (RRtfinal((s./usr/lib64/python2.7/encodings/quopri_codec.pyR3s(RRtFalseR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyR2stIncrementalDecodercBseZed„ZRS(cCst||jƒdS(Ni(RR (RRR((s./usr/lib64/python2.7/encodings/quopri_codec.pyR7s(RRRR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyR6st StreamWritercBseZRS((RR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyR:st StreamReadercBseZRS((RR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyR=scCs4tjdddtdtdtdtdtdtƒS( NtnameRRRtincrementalencodertincrementaldecodert streamwritert streamreader(tcodecst CodecInfoR RRRRR(((s./usr/lib64/python2.7/encodings/quopri_codec.pyt getregentryBs (t__doc__RRt cStringIORt ImportErrorR RRRRRRR!(((s./usr/lib64/python2.7/encodings/quopri_codec.pyts