19 lines
595 B
Diff
19 lines
595 B
Diff
--- 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:
|