AlkantarClanX12

Your IP : 3.12.123.41


Current Path : /proc/self/root/opt/alt/python35/lib64/python3.5/email/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python35/lib64/python3.5/email/__pycache__/encoders.cpython-35.opt-1.pyc



��Yf��@sxdZddddgZddlmZddlmZdd	�Zd
d�Z	dd�Z
dd�Zd
d�ZdS)z Encodings and related functions.�encode_7or8bit�
encode_base64�encode_noop�
encode_quopri�)�encodebytes)�encodestringcCs"t|dd�}|jdd�S)NZ	quotetabsT� s=20)�
_encodestring�replace)�s�enc�r
�3/opt/alt/python35/lib64/python3.5/email/encoders.py�_qencodesrcCsB|jdd�}tt|�d�}|j|�d|d<dS)zlEncode the message's payload in Base64.

    Also, add an appropriate Content-Transfer-Encoding header.
    �decodeT�ascii�base64zContent-Transfer-EncodingN)�get_payload�str�_bencode�set_payload)�msg�orig�encdatar
r
rrs
cCs9|jdd�}t|�}|j|�d|d<dS)zvEncode the message's payload in quoted-printable.

    Also, add an appropriate Content-Transfer-Encoding header.
    rTzquoted-printablezContent-Transfer-EncodingN)rrr)rrrr
r
rr&s
cCsj|jdd�}|dkr,d|d<dSy|jd�Wntk
r[d|d<YnXd|d<dS)z9Set the Content-Transfer-Encoding header to 7bit or 8bit.rTNZ7bitzContent-Transfer-EncodingrZ8bit)rr�UnicodeError)rrr
r
rr2s

cCsdS)zDo nothing.Nr
)rr
r
rrDsN)
�__doc__�__all__rrr�quoprirr	rrrrrr
r
r
r�<module>s