mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 09:15:08 +00:00
validate:launcher: Speed up xml parsing using lxml if avalaible
This commit is contained in:
parent
c0c5f95232
commit
8ea68e9e06
|
@ -39,7 +39,11 @@ import xml
|
||||||
from . import reporters
|
from . import reporters
|
||||||
from . import loggable
|
from . import loggable
|
||||||
from .loggable 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, \
|
from .utils import mkdir, Result, Colors, printc, DEFAULT_TIMEOUT, GST_SECOND, \
|
||||||
Protocols, look_for_file_in_source_dir, get_data_file, BackTraceGenerator, \
|
Protocols, look_for_file_in_source_dir, get_data_file, BackTraceGenerator, \
|
||||||
|
|
Loading…
Reference in a new issue