diff options
author | Vinson Lee <[email protected]> | 2020-06-05 00:46:10 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2020-06-05 23:42:54 -0700 |
commit | faa339e666b4d0c4f88f2588cd84176e2b19ec0f (patch) | |
tree | eb3ebfc24f987f5ea040594d401d0c8db9e11143 /src/intel/genxml | |
parent | a61532e4dbdf4fbbf5822daeb5907efaf584a375 (diff) |
Switch from cElementTree to ElementTree.
The xml.etree.cElementTree module will be removed in Python 3.9. Since
Python 3.3 the xml.etree.cElementTree module has been deprecated, the
xml.etree.ElementTree module uses a fast implementation whenever
available.
Builds using Python 2.7 can still work but with the slower
implementation.
Signed-off-by: Vinson Lee <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5349>
Diffstat (limited to 'src/intel/genxml')
-rwxr-xr-x | src/intel/genxml/gen_sort_tags.py | 2 | ||||
-rw-r--r-- | src/intel/genxml/gen_zipped_file.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/genxml/gen_sort_tags.py b/src/intel/genxml/gen_sort_tags.py index 953c0fe55b8..f87bb2bfe6e 100755 --- a/src/intel/genxml/gen_sort_tags.py +++ b/src/intel/genxml/gen_sort_tags.py @@ -28,7 +28,7 @@ from collections import OrderedDict import os import pathlib import re -import xml.etree.cElementTree as et +import xml.etree.ElementTree as et def get_filename(element): return element.attrib['filename'] diff --git a/src/intel/genxml/gen_zipped_file.py b/src/intel/genxml/gen_zipped_file.py index 199f550419e..fd91f175b16 100644 --- a/src/intel/genxml/gen_zipped_file.py +++ b/src/intel/genxml/gen_zipped_file.py @@ -25,7 +25,7 @@ from __future__ import print_function import sys import zlib -import xml.etree.cElementTree as et +import xml.etree.ElementTree as et def main(): if len(sys.argv) < 2: |