From b6da94a0d5890e4e48b7b132b075f3b1bd192256 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 6 Oct 2010 23:37:29 +0000 Subject: [PATCH] fix py2.4 compatibility git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4534 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/roundupdb.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 _ -- 2.30.2