�`^c@s�dZddlZddlZyddlmZWn!ek
rUddlmZnXdd�Zdd�Zdejfd��YZd ej fd
��YZ dej
fd��YZ
d
eejfd��YZdeejfd��YZd�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,/sys/lib/python2.7/encodings/quopri_codec.pyt
quopri_encodes 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
RR((s,/sys/lib/python2.7/encodings/quopri_codec.pyt
quopri_decodes tCodeccBs eZdd�Zdd�ZRS(RcCs
t||�S(N(R
(tselfRR ((s,/sys/lib/python2.7/encodings/quopri_codec.pyR-scCs
t||�S(N(R(RRR ((s,/sys/lib/python2.7/encodings/quopri_codec.pyR/s(t__name__t
__module__RR(((s,/sys/lib/python2.7/encodings/quopri_codec.pyR+stIncrementalEncodercBseZed�ZRS(cCst||j�dS(Ni(R
R (RRtfinal((s,/sys/lib/python2.7/encodings/quopri_codec.pyR3s(RRtFalseR(((s,/sys/lib/python2.7/encodings/quopri_codec.pyR2stIncrementalDecodercBseZed�ZRS(cCst||j�dS(Ni(RR (RRR((s,/sys/lib/python2.7/encodings/quopri_codec.pyR7s(RRRR(((s,/sys/lib/python2.7/encodings/quopri_codec.pyR6stStreamWritercBseZRS((RR(((s,/sys/lib/python2.7/encodings/quopri_codec.pyR:stStreamReadercBseZRS((RR(((s,/sys/lib/python2.7/encodings/quopri_codec.pyR=scCs4tjdddtdtdtdtdtdt�S( NtnameRRRtincrementalencodertincrementaldecodertstreamwritertstreamreader(tcodecst CodecInfoR
RRRRR(((s,/sys/lib/python2.7/encodings/quopri_codec.pytgetregentryBs (t__doc__RRt cStringIORtImportErrorR
RRRRRRR!(((s,/sys/lib/python2.7/encodings/quopri_codec.pyt<module>s
|