From e606fa6e8c23bff65618d73dfc19b8dd301460e1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 8 Oct 2011 01:03:17 -0700 Subject: [PATCH] portage/mail: always UTF-8 charset for MIMEText This will fix bug #386095. --- pym/portage/mail.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/portage/mail.py b/pym/portage/mail.py index 17dfcafd0..3fcadd27b 100644 --- a/pym/portage/mail.py +++ b/pym/portage/mail.py @@ -40,8 +40,7 @@ else: def TextMessage(_text): from email.mime.text import MIMEText mimetext = MIMEText(_text) - if sys.hexversion >= 0x3000000: - mimetext.set_charset("UTF-8") + mimetext.set_charset("UTF-8") return mimetext def create_message(sender, recipient, subject, body, attachments=None): -- 2.26.2