From 91be7943121cfbc0dacc49848fa8f27d72c54c34 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 2 Aug 2011 09:08:49 +0100 Subject: Resolves: fdo#36763 backport fix for py#4768 --- python/Python-2.6.1-py4768.patch | 11 +++++++++++ python/makefile.mk | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 python/Python-2.6.1-py4768.patch diff --git a/python/Python-2.6.1-py4768.patch b/python/Python-2.6.1-py4768.patch new file mode 100644 index 000000000000..7617f5dbec53 --- /dev/null +++ b/python/Python-2.6.1-py4768.patch @@ -0,0 +1,11 @@ +--- 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' + diff --git a/python/makefile.mk b/python/makefile.mk index ad9783feac2d..4f50ed3bcccf 100644 --- a/python/makefile.mk +++ b/python/makefile.mk @@ -56,7 +56,8 @@ PATCH_FILES=\ Python-2.6.1-urllib.patch \ Python-2.6.1-sysbase.patch \ Python-2.6.1-nohardlink.patch \ - Python-2.6.1-py2422.patch + Python-2.6.1-py2422.patch \ + Python-2.6.1-py4768.patch CONFIGURE_DIR= -- cgit