diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-21 04:04:37 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-21 04:04:37 +0000 |
commit | fc39b538373a6b7cf9e33944061e499e2ac952b7 (patch) | |
tree | 0b2c58b5c913520075054332ca06f5d02d1e9c8b | |
parent | ccaafff7115fae44c6035eb33e96b28f9d985c65 (diff) | |
download | portage-fc39b538373a6b7cf9e33944061e499e2ac952b7.tar.gz portage-fc39b538373a6b7cf9e33944061e499e2ac952b7.tar.bz2 portage-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.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py index 42ed43b83..0cc250085 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 |