From bd238713ef42584dda2bf0fda848b004e18d946a Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Wed, 21 Nov 2018 09:26:08 +0100 Subject: [PATCH] sanitytest: no type change static typing forbids re-declaring a variable with different types. Rename the variable. Signed-off-by: Philipp Hahn --- sanitytest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanitytest.py b/sanitytest.py index efe46a9..dc3796b 100644 --- a/sanitytest.py +++ b/sanitytest.py @@ -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)