1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-12-06 00:23:47 +03:00

generator: Walk only the values

instead of the keys and then doing a lookup.

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-20 11:31:32 +01:00
committed by Jano Tomko
parent 89c453db00
commit 280b1d6640

View File

@@ -1360,8 +1360,8 @@ def buildWrappers(module):
print("ERROR: Unknown module type: %s" % module)
return None
for type in list(classes_type.keys()):
function_classes[classes_type[type][2]] = []
for tinfo in classes_type.values():
function_classes[tinfo[2]] = []
#
# Build the list of C types to look for ordered to start