diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-17 02:26:24 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-17 02:26:24 +0000 |
commit | 4213faf8dd3b8f389a71cab6d2c69da7b907fec1 (patch) | |
tree | 4df2449ee751c1ca8c7532943a7c7fbbeff030ac | |
parent | fcac912fc8445c35c198a9e748846d2f8dfe1196 (diff) | |
download | portage-4213faf8dd3b8f389a71cab6d2c69da7b907fec1.tar.gz portage-4213faf8dd3b8f389a71cab6d2c69da7b907fec1.tar.bz2 portage-4213faf8dd3b8f389a71cab6d2c69da7b907fec1.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.
svn path=/main/trunk/; revision=14844
-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 |