Your IP : 3.14.255.237


Current Path : /lib64/python2.7/email/
Upload File :
Current File : //lib64/python2.7/email/encoders.pyo

�
�mec@sndZddddgZddlZddlmZd�Zd	�Zd
�Zd�Z	d�Z
d
�ZdS(s Encodings and related functions.tencode_7or8bitt
encode_base64tencode_noopt
encode_quoprii����N(tencodestringcCs"t|dt�}|jdd�S(Nt	quotetabst s=20(t
_encodestringtTruetreplace(tstenc((s&/usr/lib64/python2.7/email/encoders.pyt_qencodescCsL|s
|S|ddk}tj|�}|rH|ddkrH|d S|S(Ni����s
(tbase64R(R
t
hasnewlinetvalue((s&/usr/lib64/python2.7/email/encoders.pyt_bencodescCs3|j�}t|�}|j|�d|d<dS(slEncode the message's payload in Base64.

    Also, add an appropriate Content-Transfer-Encoding header.
    R
sContent-Transfer-EncodingN(tget_payloadRtset_payload(tmsgtorigtencdata((s&/usr/lib64/python2.7/email/encoders.pyR's
cCs3|j�}t|�}|j|�d|d<dS(svEncode the message's payload in quoted-printable.

    Also, add an appropriate Content-Transfer-Encoding header.
    squoted-printablesContent-Transfer-EncodingN(RRR(RRR((s&/usr/lib64/python2.7/email/encoders.pyR3s
cCsc|j�}|dkr&d|d<dSy|jd�Wntk
rTd|d<nXd|d<dS(s9Set the Content-Transfer-Encoding header to 7bit or 8bit.t7bitsContent-Transfer-EncodingNtasciit8bit(RtNonetencodetUnicodeError(RR((s&/usr/lib64/python2.7/email/encoders.pyR?s

cCsdS(sDo nothing.N((R((s&/usr/lib64/python2.7/email/encoders.pyRQs(t__doc__t__all__R
tquopriRRRRRRRR(((s&/usr/lib64/python2.7/email/encoders.pyt<module>s