summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-11-21 04:04:37 +0000
committerZac Medico <zmedico@gentoo.org>2009-11-21 04:04:37 +0000
commitfc39b538373a6b7cf9e33944061e499e2ac952b7 (patch)
tree0b2c58b5c913520075054332ca06f5d02d1e9c8b
parentRemove SLOT.missing since SLOT.invalid handles that case now. (trunk r14824) (diff)
downloadportage-multirepo-fc39b538373a6b7cf9e33944061e499e2ac952b7.tar.gz
portage-multirepo-fc39b538373a6b7cf9e33944061e499e2ac952b7.tar.bz2
portage-multirepo-fc39b538373a6b7cf9e33944061e499e2ac952b7.zip
Bug #293448 - Fix TypeError when sending mail with python3, triggered by this
issue: http://bugs.python.org/issue6521. Thanks to Albert W. Hopkins <marduk@python.net> for this patch. (trunk r14844) svn path=/main/branches/2.1.7/; revision=14860
-rw-r--r--pym/portage/mail.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py
index 42ed43b8..0cc25008 100644
--- a/pym/portage/mail.py
+++ b/pym/portage/mail.py
@@ -23,7 +23,9 @@ if sys.hexversion >= 0x3000000:
if sys.hexversion >= 0x3000000:
def TextMessage(_text):
- return MIMEText(_text, _charset="UTF-8")
+ mimetext = MIMEText(_text)
+ mimetext.set_charset("UTF-8")
+ return mimetext
else:
TextMessage = MIMEText