aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/formatting.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-13 13:10:13 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-13 13:10:13 -0500
commitc5d7551e6a6e98bb6da7c7d11360224edfda2f14 (patch)
tree212ac0f61c99e1290a131ca0655a31b5dbfb0eb6 /Bugs-Everywhere-Web/beweb/formatting.py
parent9055757a1b30c55798173f2454de8d4fa0676d40 (diff)
downloadbugseverywhere-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 'Bugs-Everywhere-Web/beweb/formatting.py')
-rw-r--r--Bugs-Everywhere-Web/beweb/formatting.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Bugs-Everywhere-Web/beweb/formatting.py b/Bugs-Everywhere-Web/beweb/formatting.py
index b68d328..1278414 100644
--- a/Bugs-Everywhere-Web/beweb/formatting.py
+++ b/Bugs-Everywhere-Web/beweb/formatting.py
@@ -1,6 +1,9 @@
from StringIO import StringIO
-from elementtree.ElementTree import XML
+try :
+ from xml.etree.ElementTree import XML # Python 2.5 (and greater?)
+except ImportError :
+ from elementtree.ElementTree import XML
from libbe.restconvert import rest_xml
def to_unix(text):