summaryrefslogtreecommitdiff
blob: 4c06997b08098371b9f60baab14bba5481ae1a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/paste/exceptions/reporter.py
+++ b/paste/exceptions/reporter.py
@@ -1,8 +1,14 @@
 # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
 # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 
-from email.MIMEText import MIMEText
-from email.MIMEMultipart import MIMEMultipart
+try:
+    from email.MIMEText import MIMEText
+except:
+    from email.mime.text import MIMEText
+try:
+    from email.MIMEMultipart import MIMEMultipart
+except:
+    from email.mime.multipart import MIMEMultipart
 import smtplib
 import time
 try: