From faa339e666b4d0c4f88f2588cd84176e2b19ec0f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 5 Jun 2020 00:46:10 -0700 Subject: 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 Acked-by: Eric Engestrom Part-of: --- src/mapi/new/genCommon.py | 2 +- src/mapi/new/gen_gldispatch_mapi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mapi') 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 -- cgit v1.2.3