1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-29 19:41:52 +03:00

sanitytest: no type change

static typing forbids re-declaring a variable with different types.
Rename the variable.

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-21 09:26:08 +01:00
parent 22f2ba37ae
commit bd238713ef

View File

@ -81,10 +81,10 @@ for n in second_pass:
for n in tree.xpath('/api/files/file/exports[@type="enum"]/@symbol'):
for enumval in enumvals.values():
if n in enumval:
enum = enumval
enumv = enumval
break
# Eliminate sentinels
if n.endswith('_LAST') and enum[n] == max(enum.values()):
if n.endswith('_LAST') and enumv[n] == max(enumv.values()):
continue
wantenums.append(n)