diff options
author | Philipp Hahn <hahn@univention.de> | 2020-04-20 17:42:55 +0200 |
---|---|---|
committer | Jano Tomko <jtomko@redhat.com> | 2020-09-01 13:26:01 +0000 |
commit | 5a2c12278a1984632e344fd5b4578b274ac0016e (patch) | |
tree | 54feee987f48036bab94abab1d49000027a5798b /generator.py | |
parent | f87eba2fee83527f2b89465632a282579d0d7d21 (diff) | |
download | libvirt-python-5a2c12278a1984632e344fd5b4578b274ac0016e.tar.gz |
generator: Expand tuple to names in for loop
Assign tuple to multiple loop variables for better readability
Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'generator.py')
-rwxr-xr-x | generator.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generator.py b/generator.py index 7c9fd27..f3ed905 100755 --- a/generator.py +++ b/generator.py @@ -1373,8 +1373,7 @@ def buildWrappers(module): if "None" in function_classes: flist = function_classes["None"] oldfile = "" - for info in sorted(flist, key=functionSortKey): - (index, func, name, ret, args, file, mod) = info + for (index, func, name, ret, args, file, mod) in sorted(flist, key=functionSortKey): if file != oldfile: classes.write("#\n# Functions from module %s\n#\n\n" % file) oldfile = file @@ -1530,8 +1529,7 @@ def buildWrappers(module): flist = function_classes[classname] oldfile = "" - for info in sorted(flist, key=functionSortKey): - (index, func, name, ret, args, file, mod) = info + for (index, func, name, ret, args, file, mod) in sorted(flist, key=functionSortKey): # # Do not provide as method the destructors for the class # to avoid double free |