From: Tim Wiederhake Date: Tue, 15 Dec 2020 16:24:47 +0000 (+0100) Subject: cpu-cpuid: Shorten overly long line X-Git-Tag: v7.0.0-rc1~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d25f2fe16a5ac6865547d9b6718b80307ebba29;p=thirdparty%2Flibvirt.git cpu-cpuid: Shorten overly long line flake8 was complaining. Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- diff --git a/tests/cputestdata/cpu-cpuid.py b/tests/cputestdata/cpu-cpuid.py index 37d00e3c97..dac43debb6 100755 --- a/tests/cputestdata/cpu-cpuid.py +++ b/tests/cputestdata/cpu-cpuid.py @@ -158,8 +158,9 @@ def parseMap(): cpuMap = {} for feature in data["cpus"]["feature"]: for fType in ["cpuid", "msr"]: - if fType in feature: - cpuMap[feature["@name"]] = parseMapFeature(fType, feature[fType]) + if fType not in feature: + continue + cpuMap[feature["@name"]] = parseMapFeature(fType, feature[fType]) return cpuMap