changeset 2112:678c1bd96267

user lowercase email.* module names (as all recent python stdlibs have)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 05 May 2013 01:17:57 +0200
parents 60e75cabd0d6
children fa85831f8eb8
files MoinMoin/mail/_tests/test_sendmail.py MoinMoin/mail/sendmail.py
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/mail/_tests/test_sendmail.py	Sat May 04 16:32:45 2013 +0200
+++ b/MoinMoin/mail/_tests/test_sendmail.py	Sun May 05 01:17:57 2013 +0200
@@ -7,8 +7,8 @@
 """
 
 
-from email.Charset import Charset, QP
-from email.Header import Header
+from email.charset import Charset, QP
+from email.header import Header
 
 from MoinMoin.mail import sendmail
 from MoinMoin.constants.contenttypes import CHARSET
--- a/MoinMoin/mail/sendmail.py	Sat May 04 16:32:45 2013 +0200
+++ b/MoinMoin/mail/sendmail.py	Sun May 05 01:17:57 2013 +0200
@@ -10,7 +10,7 @@
 
 import os
 import re
-from email.Header import Header
+from email.header import Header
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
@@ -82,9 +82,9 @@
     """
     import smtplib
     import socket
-    from email.Message import Message
-    from email.Charset import Charset, QP
-    from email.Utils import formatdate, make_msgid
+    from email.message import Message
+    from email.charset import Charset, QP
+    from email.utils import formatdate, make_msgid
 
     cfg = app.cfg
     if not cfg.mail_enabled: