diff options
author | W. Trevor King <wking@drexel.edu> | 2008-11-13 13:10:13 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-11-13 13:10:13 -0500 |
commit | c5d7551e6a6e98bb6da7c7d11360224edfda2f14 (patch) | |
tree | 212ac0f61c99e1290a131ca0655a31b5dbfb0eb6 /libbe/restconvert.py | |
parent | 9055757a1b30c55798173f2454de8d4fa0676d40 (diff) | |
download | bugseverywhere-c5d7551e6a6e98bb6da7c7d11360224edfda2f14.tar.gz |
* use python2.4/2.5 compatible import of ElementTree
* catch Popen() calls to missing VCS binaries
* test.py should only test installed backends
Diffstat (limited to 'libbe/restconvert.py')
-rw-r--r-- | libbe/restconvert.py | 5 |
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): |