3 \@sPddddgZddlmZddlmZddZd dZd dZ d dZ d dZ d S)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)NT)decodeasciibase64zContent-Transfer-Encoding) get_payloadstr_bencode set_payload)msgorigencdatar r rrs  cCs*|jdd}t|}|j|d|d<dS)NT)rzquoted-printablezContent-Transfer-Encoding)rrr)rrrr r rr&s  c CsX|jdd}|dkr d|d<dSy|jdWntk rJd|d<Yn Xd|d<dS)NT)rZ7bitzContent-Transfer-EncodingrZ8bit)rr UnicodeError)rrr r rr2s cCsdS)Nr )rr r rrDsN) __all__rrrquoprirr rrrrrr r r rs