summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/import_cldr.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py
index 8e151f7..a38da81 100755
--- a/scripts/import_cldr.py
+++ b/scripts/import_cldr.py
@@ -18,9 +18,12 @@ import re
import sys
try:
- from xml.etree import cElementTree as ElementTree
+ import lxml.etree as ElementTree
except ImportError:
- from xml.etree import ElementTree
+ try:
+ from xml.etree import cElementTree as ElementTree
+ except ImportError:
+ from xml.etree import ElementTree
# Make sure we're using Babel source, and not some previously installed version
sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), '..'))