projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
176f43b
)
portage/mail: always UTF-8 charset for MIMEText
author
Zac Medico
<zmedico@gentoo.org>
Sat, 8 Oct 2011 08:03:17 +0000
(
01:03
-0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 8 Oct 2011 08:03:17 +0000
(
01:03
-0700)
This will fix bug #386095.
pym/portage/mail.py
patch
|
blob
|
history
diff --git
a/pym/portage/mail.py
b/pym/portage/mail.py
index 17dfcafd04f3c944b1a32942d4524ac1986c397a..3fcadd27bfc2aa3eb0aa00023613bff662f48e7f 100644
(file)
--- 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):