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/mapi/new | |
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/mapi/new')
-rw-r--r-- | src/mapi/new/genCommon.py | 2 | ||||
-rwxr-xr-x | src/mapi/new/gen_gldispatch_mapi.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapi/new/genCommon.py b/src/mapi/new/genCommon.py index bf71de14891..ec8e9e75019 100644 --- a/src/mapi/new/genCommon.py +++ b/src/mapi/new/genCommon.py @@ -28,7 +28,7 @@ import collections import re import sys -import xml.etree.cElementTree as etree +import xml.etree.ElementTree as etree import os GLAPI = os.path.join(os.path.dirname(__file__), "..", "glapi", "gen") diff --git a/src/mapi/new/gen_gldispatch_mapi.py b/src/mapi/new/gen_gldispatch_mapi.py index 86958de3007..85596792e13 100755 --- a/src/mapi/new/gen_gldispatch_mapi.py +++ b/src/mapi/new/gen_gldispatch_mapi.py @@ -33,7 +33,7 @@ Generates the glapi_mapi_tmp.h header file from Khronos's XML file. """ import sys -import xml.etree.cElementTree as etree +import xml.etree.ElementTree as etree import genCommon |