mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
glapi: remove deprecated .getchildren() that has been replace with an iterator
Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3086 Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Vinson Lee <vlee@freedesktop.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5342>
This commit is contained in:
parent
c9a9b363ce
commit
7a68045b5d
2 changed files with 6 additions and 6 deletions
|
|
@ -48,7 +48,7 @@ class glx_enum(gl_XML.gl_enum):
|
|||
|
||||
self.functions = {}
|
||||
|
||||
for child in element.getchildren():
|
||||
for child in element:
|
||||
if child.tag == "size":
|
||||
n = child.get( "name" )
|
||||
c = child.get( "count" )
|
||||
|
|
@ -130,7 +130,7 @@ class glx_function(gl_XML.gl_function):
|
|||
self.counter_list.append(param.counter)
|
||||
|
||||
|
||||
for child in element.getchildren():
|
||||
for child in element:
|
||||
if child.tag == "glx":
|
||||
rop = child.get( 'rop' )
|
||||
sop = child.get( 'sop' )
|
||||
|
|
|
|||
|
|
@ -716,7 +716,7 @@ class gl_function( gl_item ):
|
|||
|
||||
parameters = []
|
||||
return_type = "void"
|
||||
for child in element.getchildren():
|
||||
for child in element:
|
||||
if child.tag == "return":
|
||||
return_type = child.get( "type", "void" )
|
||||
elif child.tag == "param":
|
||||
|
|
@ -746,7 +746,7 @@ class gl_function( gl_item ):
|
|||
if param.is_image():
|
||||
self.images.append( param )
|
||||
|
||||
if element.getchildren():
|
||||
if list(element):
|
||||
self.initialized = 1
|
||||
self.entry_point_parameters[name] = parameters
|
||||
else:
|
||||
|
|
@ -876,7 +876,7 @@ class gl_api(object):
|
|||
|
||||
|
||||
def process_OpenGLAPI(self, file_name, element):
|
||||
for child in element.getchildren():
|
||||
for child in element:
|
||||
if child.tag == "category":
|
||||
self.process_category( child )
|
||||
elif child.tag == "OpenGLAPI":
|
||||
|
|
@ -896,7 +896,7 @@ class gl_api(object):
|
|||
[cat_type, key] = classify_category(cat_name, cat_number)
|
||||
self.categories[cat_type][key] = [cat_name, cat_number]
|
||||
|
||||
for child in cat.getchildren():
|
||||
for child in cat:
|
||||
if child.tag == "function":
|
||||
func_name = real_function_name( child )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue