aboutsummaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2020-06-05 00:46:10 -0700
committerVinson Lee <[email protected]>2020-06-05 23:42:54 -0700
commitfaa339e666b4d0c4f88f2588cd84176e2b19ec0f (patch)
treeeb3ebfc24f987f5ea040594d401d0c8db9e11143 /src/mapi
parenta61532e4dbdf4fbbf5822daeb5907efaf584a375 (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')
-rw-r--r--src/mapi/new/genCommon.py2
-rwxr-xr-xsrc/mapi/new/gen_gldispatch_mapi.py2
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