aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'portage_with_autodep/pym/portage/mail.py')
-rw-r--r--portage_with_autodep/pym/portage/mail.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/portage_with_autodep/pym/portage/mail.py b/portage_with_autodep/pym/portage/mail.py
index 17dfcaf..3fcadd2 100644
--- a/portage_with_autodep/pym/portage/mail.py
+++ b/portage_with_autodep/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):