summaryrefslogtreecommitdiff
path: root/generator.py
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2018-11-20 11:32:54 +0100
committerJano Tomko <jtomko@redhat.com>2020-09-01 13:26:01 +0000
commitf36643acacaa80b017820fa746cce636c2607371 (patch)
tree7a7958f87a69ba2158f293e38bc6373d1be73c7a /generator.py
parentada1554532a6c8ec1cd90f63bda6ae0ef342f955 (diff)
downloadlibvirt-python-f36643acacaa80b017820fa746cce636c2607371.tar.gz
generator: Just walk the dict
instead of generating a list first. Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'generator.py')
-rwxr-xr-xgenerator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.py b/generator.py
index 4c365d6..9dd16ef 100755
--- a/generator.py
+++ b/generator.py
@@ -958,7 +958,7 @@ def buildStubs(module, api_xml):
wrapper.write("#include \"typewrappers.h\"\n")
wrapper.write("#include \"build/" + module + ".h\"\n\n")
- for function in sorted(funcs.keys()):
+ for function in sorted(funcs):
# Skip the functions which are not for the module
ret = print_function_wrapper(module, function, wrapper, export, include)
if ret < 0: