Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2014-06-15 22:14:49 +0200
committerArthur de Jong <arthur@arthurdejong.org>2014-06-15 22:15:45 +0200
commitd84e7614525437a7a397664f05e1b7c720e903ef (patch)
treed4dc9cdb09f1500eb862960b1f0104ac3c92414d
parent50b429d5f8698373dd8c0b0dbe554d4b98f1487c (diff)
Simplify finding ElementTree implementation
These are the only ElementTree implementations that have been tested to provide the needed functionality (mostly namespaces).
-rw-r--r--pskc/parse.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/pskc/parse.py b/pskc/parse.py
index 4f3a7ec..a08bfc1 100644
--- a/pskc/parse.py
+++ b/pskc/parse.py
@@ -27,16 +27,7 @@ This module provides some utility functions for parsing PSKC files.
try:
from lxml import etree
except ImportError: # pragma: no cover (different implementations)
- try:
- import xml.etree.cElementTree as etree
- except ImportError:
- try:
- import xml.etree.ElementTree as etree
- except ImportError:
- try:
- import cElementTree as etree
- except ImportError:
- import elementtree.ElementTree as etree
+ import xml.etree.ElementTree as etree
# the relevant XML namespaces for PSKC