Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r14458 - main/trunk/pym/portage
Date: Mon, 28 Sep 2009 20:37:29
Message-Id: E1MsMyH-0000pF-1f@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-09-28 20:37:20 +0000 (Mon, 28 Sep 2009)
3 New Revision: 14458
4
5 Modified:
6 main/trunk/pym/portage/mail.py
7 Log:
8 Bug #286780 - Fix email.MIME* imports to use email.mime.* (works with python
9 2.6 and python 3). Thanks to Hanno Meyer-Thurow <h.mth@×××.de> for this patch.
10
11
12 Modified: main/trunk/pym/portage/mail.py
13 ===================================================================
14 --- main/trunk/pym/portage/mail.py 2009-09-28 20:32:37 UTC (rev 14457)
15 +++ main/trunk/pym/portage/mail.py 2009-09-28 20:37:20 UTC (rev 14458)
16 @@ -3,9 +3,9 @@
17 # Distributed under the terms of the GNU General Public License v2
18 # $Id$
19
20 -from email.MIMEText import MIMEText as TextMessage
21 -from email.MIMEMultipart import MIMEMultipart as MultipartMessage
22 -from email.MIMEBase import MIMEBase as BaseMessage
23 +from email.mime.text import MIMEText as TextMessage
24 +from email.mime.multipart import MIMEMultipart as MultipartMessage
25 +from email.mime.base import MIMEBase as BaseMessage
26 from email.header import Header
27 import smtplib
28 import socket