U if@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}|ddS)NT)Z quotetabs s=20) _encodestringreplace)sencr 3/opt/alt/python38/lib64/python3.8/email/encoders.py_qencodes rcCs0|jdd}tt|d}||d|d<dS)zlEncode the message's payload in Base64. Also, add an appropriate Content-Transfer-Encoding header. Tdecodeasciibase64Content-Transfer-EncodingN) get_payloadstr_bencode set_payloadmsgorigZencdatar r rrs  cCs*|jdd}t|}||d|d<dS)zvEncode the message's payload in quoted-printable. Also, add an appropriate Content-Transfer-Encoding header. Trzquoted-printablerN)rrrrr r rr&s  cCsX|jdd}|dkr d|d<dSz|dWntk rJd|d<Yn Xd|d<dS)z9Set the Content-Transfer-Encoding header to 7bit or 8bit.TrNZ7bitrrZ8bit)rr UnicodeError)rrr r rr2s cCsdS)z Do nothing.Nr )rr r rrDsN) __doc____all__rrrquoprirr rrrrrr r r rs