Mercurial > p > roundup > code
changeset 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 | c355541aaae3 |
| children | 461def18244d |
| files | doc/acknowledgements.txt roundup/mailer.py |
| diffstat | 2 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/acknowledgements.txt Mon Mar 02 23:05:09 2015 +0100 +++ b/doc/acknowledgements.txt Thu Mar 05 00:19:42 2015 +1100 @@ -109,6 +109,7 @@ Patrick Ohly, "om", Luke Opperman, +Anthony Pankov, Eddie Parker, Will Partain, Timo Paulssen,
--- 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
