Your IP : 3.15.203.195


Current Path : /opt/alt/python27/lib64/python2.7/encodings/
Upload File :
Current File : //opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyc

�
^
bc@s�dZddlZddlZyddlmZWn!ek
rUddlmZnXdd�Zdd�Zdejfd��YZd	ej	fd
��YZ	dej
fd��YZ
d
eejfd��YZdeej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||dt�|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.

    Rt	quotetabs(tAssertionErrorRtstrtquopritencodetTruetgetvaluetlen(tinputterrorstftgtoutput((s;/opt/alt/python27/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	(R
RRR
R((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyt
quopri_decodes	tCodeccBs eZdd�Zdd�ZRS(RcCs
t||�S(N(R(tselfR
R((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR-scCs
t||�S(N(R(RR
R((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR/s(t__name__t
__module__RR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR+stIncrementalEncodercBseZed�ZRS(cCst||j�dS(Ni(RR(RR
tfinal((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR3s(RRtFalseR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR2stIncrementalDecodercBseZed�ZRS(cCst||j�dS(Ni(RR(RR
R((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR7s(RRRR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR6stStreamWritercBseZRS((RR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR:stStreamReadercBseZRS((RR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyR=scCs:tjdddtdtdtdtdtdtd	t�S(
NtnameRRRtincrementalencodertincrementaldecodertstreamwritertstreamreadert_is_text_encoding(	tcodecst	CodecInfoRRRRRRR(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pytgetregentryBs	(t__doc__R"Rt	cStringIORtImportErrorRRRRRRRR$(((s;/opt/alt/python27/lib64/python2.7/encodings/quopri_codec.pyt<module>s


?>