aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-13 12:31:40 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-13 12:31:40 -0500
commit4671bb85ad36b1ac70d0316ee4d92229d459b90d (patch)
tree212ac0f61c99e1290a131ca0655a31b5dbfb0eb6 /libbe
parentd57ab5228547c416e0c4b5c2d60fef23681e5393 (diff)
downloadbugseverywhere-4671bb85ad36b1ac70d0316ee4d92229d459b90d.tar.gz
Updated imports to handle Python 2.5 ElementTree module.
Opened, fixed, and closed as bug 31c.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/restconvert.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbe/restconvert.py b/libbe/restconvert.py
index 8ebb6b4..cc7f866 100644
--- a/libbe/restconvert.py
+++ b/libbe/restconvert.py
@@ -23,7 +23,10 @@ from docutils.core import publish_file
from docutils.parsers import rst
from docutils.parsers.rst import directives
from docutils.parsers.rst.states import Inliner, MarkupMismatch, unescape
-from elementtree import ElementTree
+try :
+ from xml.etree import ElementTree # Python 2.5 (and greater?)
+except ImportError :
+ from elementtree import ElementTree
def rest_xml(rest):