aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: