summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ed1e47)
raw | patch | inline | side by side (parent: 4ed1e47)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 6 Oct 2010 23:37:29 +0000 (23:37 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 6 Oct 2010 23:37:29 +0000 (23:37 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4534 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/roundupdb.py | patch | blob | history |
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index eb716022397268261121779d51588907c5d77013..09168ddf0e4ced405780bd31a1077d9135bd805a 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
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 _