Skip to content

Commit 64e537d

Browse files
committed
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.
1 parent bb11c6f commit 64e537d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/acknowledgements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Bryce L Nordgren,
109109
Patrick Ohly,
110110
"om",
111111
Luke Opperman,
112+
Anthony Pankov,
112113
Eddie Parker,
113114
Will Partain,
114115
Timo Paulssen,

roundup/mailer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
from roundup import __version__
1010
from roundup.date import get_timezone, Date
1111

12-
from email.Utils import formatdate, formataddr, specialsre, escapesre
13-
from email.Message import Message
14-
from email.Header import Header
15-
from email.MIMEBase import MIMEBase
16-
from email.MIMEText import MIMEText
17-
from email.MIMEMultipart import MIMEMultipart
12+
from email.utils import formatdate, formataddr, specialsre, escapesre
13+
from email.message import Message
14+
from email.header import Header
15+
from email.mime.base import MIMEBase
16+
from email.mime.text import MIMEText
17+
from email.mime.multipart import MIMEMultipart
1818

1919
try:
2020
import pyme, pyme.core

0 commit comments

Comments
 (0)