From: richard Date: Wed, 6 Oct 2010 23:37:29 +0000 (+0000) Subject: fix py2.4 compatibility X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b6da94a0d5890e4e48b7b132b075f3b1bd192256;p=roundup.git fix py2.4 compatibility git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4534 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index eb71602..09168dd 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -30,7 +30,13 @@ from email.Utils import formataddr from email.Header import Header from email.MIMEText import MIMEText from email.MIMEBase import MIMEBase -from email.parser import FeedParser + +try: + # Python 2.5+ + from email.parser import FeedParser +except ImportError: + # Python 2.4 + from email.Parser import FeedParser from roundup import password, date, hyperdb from roundup.i18n import _