summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/XML.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Client/XML.py')
-rw-r--r--src/lib/Client/XML.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Client/XML.py b/src/lib/Client/XML.py
index 356886558..b0ae0f771 100644
--- a/src/lib/Client/XML.py
+++ b/src/lib/Client/XML.py
@@ -6,15 +6,18 @@ __revision__ = '$Revision$'
try:
from lxml.etree import Element, SubElement, tostring
from lxml.etree import XMLSyntaxError as ParseError
+ driver = 'lxml'
except ImportError:
# lxml not available
try:
from xml.etree.ElementTree import Element, XML, tostring
from xml.parsers.expat import ExpatError as ParseError
+ driver = 'etree-py'
except ImportError:
try:
from elementtree.ElementTree import Element, XML, tostring
from xml.parsers.expat import ExpatError as ParseError
+ driver = 'etree'
except ImportError:
print "Failed to load lxml, xml.etree and elementtree.ElementTree"
print "Cannot continue"