aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-04-16 15:17:33 -0400
committerW. Trevor King <wking@drexel.edu>2011-04-16 15:17:33 -0400
commitd3aded78a005078ac175b2664eda592c31341761 (patch)
treed8412591eef52fe6c57098ea809cf468be056e9d
parent3ac9d8c6013a8d959c98bbfe373491dc84ecc925 (diff)
downloadbugseverywhere-d3aded78a005078ac175b2664eda592c31341761.tar.gz
Import ElementTree in libbe.util.utility for InvalidXML.
-rw-r--r--libbe/util/utility.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbe/util/utility.py b/libbe/util/utility.py
index 3f9a1b0..4fe906e 100644
--- a/libbe/util/utility.py
+++ b/libbe/util/utility.py
@@ -28,6 +28,10 @@ import shutil
import tempfile
import time
import types
+try: # import core module, Python >= 2.5
+ from xml.etree import ElementTree
+except ImportError: # look for non-core module
+ from elementtree import ElementTree
import libbe
if libbe.TESTING == True: