validate:launcher: Speed up xml parsing using lxml if avalaible

This commit is contained in:
Thibault Saunier 2017-06-22 13:08:30 -04:00
parent c0c5f95232
commit 8ea68e9e06

View file

@ -39,7 +39,11 @@ import xml
from . import reporters
from . import loggable
from .loggable import Loggable
import xml.etree.cElementTree as ET
try:
from lxml import etree as ET
except (ModuleNotFoundError, ImportError):
import xml.etree.cElementTree as ET
from .utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \
Protocols, look_for_file_in_source_dir, get_data_file, BackTraceGenerator, \