diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-09-28 20:37:20 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-09-28 20:37:20 +0000 |
commit | 9cac6ffcacadc3b7f8d00cc64ecaf957bbe1fe38 (patch) | |
tree | 1104b4a8389046cb3f452a1cd582c3ab7c4b24cb | |
parent | 7ba607a6f7929db49d8ee7db3259a7b82590c178 (diff) | |
download | portage-9cac6ffcacadc3b7f8d00cc64ecaf957bbe1fe38.tar.gz portage-9cac6ffcacadc3b7f8d00cc64ecaf957bbe1fe38.tar.bz2 portage-9cac6ffcacadc3b7f8d00cc64ecaf957bbe1fe38.zip |
Bug #286780 - Fix email.MIME* imports to use email.mime.* (works with python
2.6 and python 3). Thanks to Hanno Meyer-Thurow <h.mth@web.de> for this patch.
svn path=/main/trunk/; revision=14458
-rw-r--r-- | pym/portage/mail.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/mail.py b/pym/portage/mail.py index 85192d097..040cd1136 100644 --- a/pym/portage/mail.py +++ b/pym/portage/mail.py @@ -3,9 +3,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ -from email.MIMEText import MIMEText as TextMessage -from email.MIMEMultipart import MIMEMultipart as MultipartMessage -from email.MIMEBase import MIMEBase as BaseMessage +from email.mime.text import MIMEText as TextMessage +from email.mime.multipart import MIMEMultipart as MultipartMessage +from email.mime.base import MIMEBase as BaseMessage from email.header import Header import smtplib import socket |