From 9cac6ffcacadc3b7f8d00cc64ecaf957bbe1fe38 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 28 Sep 2009 20:37:20 +0000 Subject: [PATCH] Bug #286780 - Fix email.MIME* imports to use email.mime.* (works with python 2.6 and python 3). Thanks to Hanno Meyer-Thurow for this patch. svn path=/main/trunk/; revision=14458 --- pym/portage/mail.py | 6 +++--- 1 file 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 -- 2.26.2