self.functions = {}
- for child in element.getchildren():
+ for child in element:
if child.tag == "size":
n = child.get( "name" )
c = child.get( "count" )
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' )
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":
if param.is_image():
self.images.append( param )
- if element.getchildren():
+ if list(element):
self.initialized = 1
self.entry_point_parameters[name] = parameters
else:
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":
[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 )