From d3aded78a005078ac175b2664eda592c31341761 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 16 Apr 2011 15:17:33 -0400 Subject: Import ElementTree in libbe.util.utility for InvalidXML. --- libbe/util/utility.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libbe/util') 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: -- cgit