diff roundup/mailer.py @ 4967:760ffc0eae5b

Change email package module names to conform v4 (issue2550875) Update the mailer roundup module to use email package names introduced in v4 (Python v2.5). If nothing else this will provide forward support for Python v3+. Thanks to Anthony Pankov for the patch.
author John Kristensen <john@jerrykan.com>
date Thu, 05 Mar 2015 00:19:42 +1100
parents eabe86afc6ee
children f1a2bd1dea77
line wrap: on
line diff
--- a/roundup/mailer.py	Mon Mar 02 23:05:09 2015 +0100
+++ b/roundup/mailer.py	Thu Mar 05 00:19:42 2015 +1100
@@ -9,12 +9,12 @@
 from roundup import __version__
 from roundup.date import get_timezone, Date
 
-from email.Utils import formatdate, formataddr, specialsre, escapesre
-from email.Message import Message
-from email.Header import Header
-from email.MIMEBase import MIMEBase
-from email.MIMEText import MIMEText
-from email.MIMEMultipart import MIMEMultipart
+from email.utils import formatdate, formataddr, specialsre, escapesre
+from email.message import Message
+from email.header import Header
+from email.mime.base import MIMEBase
+from email.mime.text import MIMEText
+from email.mime.multipart import MIMEMultipart
 
 try:
     import pyme, pyme.core

Roundup Issue Tracker: http://roundup-tracker.org/