aboutsummaryrefslogtreecommitdiffstats
path: root/Bugs-Everywhere-Web/beweb/formatting.py
diff options
context:
space:
mode:
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):