Skip to content

Commit

Permalink
import_cldr: if lxml is installed, use it
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Feb 14, 2016
1 parent 9bfe3aa commit 9b5c7f3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/import_cldr.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
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]), '..'))
Expand Down

0 comments on commit 9b5c7f3

Please sign in to comment.