1 --- misc/Python-2.6.1/Lib/email/encoders.py
2 +++ misc/build/Python-2.6.1/Lib/email/encoders.py
4 Also, add an appropriate Content-Transfer-Encoding header.
6 orig = msg.get_payload()
7 - encdata = _bencode(orig)
8 + encdata = str(_bencode(orig)).encode('ascii')
9 msg.set_payload(encdata)
10 msg['Content-Transfer-Encoding'] = 'base64'