1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 16:25:10 +03:00

Simplify sorting

funcs.keys() can't be None, only the empty array
This commit is contained in:
Guido Günther 2015-05-18 19:43:31 +02:00
parent 49118f6d95
commit 25448b07b1

View File

@ -931,10 +931,7 @@ def buildStubs(module, api_xml):
wrapper.write("#include \"typewrappers.h\"\n")
wrapper.write("#include \"build/" + module + ".h\"\n\n")
funcnames = list(funcs.keys())
if funcnames is not None:
funcnames.sort()
for function in funcnames:
for function in sorted(funcs.keys()):
# Skip the functions which are not for the module
ret = print_function_wrapper(module, function, wrapper, export, include)
if ret < 0: