aboutsummaryrefslogtreecommitdiffstats
path: root/src/vulkan
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/vulkan
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/vulkan')
-rw-r--r--src/vulkan/util/gen_enum_to_str.py2
-rw-r--r--src/vulkan/util/vk_extensions.py2
-rw-r--r--src/vulkan/util/vk_extensions_gen.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/vulkan/util/gen_enum_to_str.py b/src/vulkan/util/gen_enum_to_str.py
index 035aa02a172..ebaf2a1a0cc 100644
--- a/src/vulkan/util/gen_enum_to_str.py
+++ b/src/vulkan/util/gen_enum_to_str.py
@@ -25,7 +25,7 @@ from __future__ import print_function
import argparse
import os
import textwrap
-import xml.etree.cElementTree as et
+import xml.etree.ElementTree as et
from mako.template import Template
diff --git a/src/vulkan/util/vk_extensions.py b/src/vulkan/util/vk_extensions.py
index 2f8b1a78462..d01a43fd850 100644
--- a/src/vulkan/util/vk_extensions.py
+++ b/src/vulkan/util/vk_extensions.py
@@ -1,7 +1,7 @@
import argparse
import copy
import re
-import xml.etree.cElementTree as et
+import xml.etree.ElementTree as et
def _bool_to_c_expr(b):
if b is True:
diff --git a/src/vulkan/util/vk_extensions_gen.py b/src/vulkan/util/vk_extensions_gen.py
index e340761a678..bbfb60b3d81 100644
--- a/src/vulkan/util/vk_extensions_gen.py
+++ b/src/vulkan/util/vk_extensions_gen.py
@@ -24,7 +24,7 @@ COPYRIGHT = """\
*/
"""
-import xml.etree.cElementTree as et
+import xml.etree.ElementTree as et
from mako.template import Template