mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
validate:launcher: Speed up xml parsing using lxml if avalaible
This commit is contained in:
parent
c0c5f95232
commit
8ea68e9e06
1 changed files with 5 additions and 1 deletions
|
@ -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, \
|
||||
|
|
Loading…
Reference in a new issue