usr/lib64/python3.6/email/__pycache__/encoders.cpython-36.pyc000064400000003152147205031320017572 0ustar003 \@sTdZddddgZddlmZddlmZdd Zd dZ d dZ d dZ d dZ dS)z Encodings and related functions.encode_7or8bit encode_base64 encode_noop encode_quopri) encodebytes) encodestringcCst|dd}|jddS)NT)Z quotetabs s=20) _encodestringreplace)sencr &/usr/lib64/python3.6/email/encoders.py_qencodes rcCs0|jdd}tt|d}|j|d|d<dS)zlEncode the message's payload in Base64. Also, add an appropriate Content-Transfer-Encoding header. T)decodeasciibase64zContent-Transfer-EncodingN) get_payloadstr_bencode set_payload)msgorigencdatar r rrs  cCs*|jdd}t|}|j|d|d<dS)zvEncode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header. T)rzquoted-printablezContent-Transfer-EncodingN)rrr)rrrr r rr&s  c CsX|jdd}|dkr d|d<dSy|jdWntk rJd|d<Yn Xd|d<dS)z9Set the Content-Transfer-Encoding header to 7bit or 8bit.T)rNZ7bitzContent-Transfer-EncodingrZ8bit)rr UnicodeError)rrr r rr2s cCsdS)z Do nothing.Nr )rr r rrDsN) __doc____all__rrrquoprirr rrrrrr r r rs