diff options
Diffstat (limited to 'dev-python/paste/files/paste-1.7.5.1-email-mime.patch')
-rw-r--r-- | dev-python/paste/files/paste-1.7.5.1-email-mime.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/paste/files/paste-1.7.5.1-email-mime.patch b/dev-python/paste/files/paste-1.7.5.1-email-mime.patch new file mode 100644 index 00000000000..4c06997b080 --- /dev/null +++ b/dev-python/paste/files/paste-1.7.5.1-email-mime.patch @@ -0,0 +1,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: |