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:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user