office-gobmx/python/Python-2.6.1-py4768.patch
2011-08-02 11:07:34 +01:00

11 lines
377 B
Diff

--- misc/Python-2.6.1/Lib/email/encoders.py
+++ misc/build/Python-2.6.1/Lib/email/encoders.py
@@ -42,7 +42,7 @@
Also, add an appropriate Content-Transfer-Encoding header.
"""
orig = msg.get_payload()
- encdata = _bencode(orig)
+ encdata = str(_bencode(orig)).encode('ascii')
msg.set_payload(encdata)
msg['Content-Transfer-Encoding'] = 'base64'