cpu-cpuid: Shorten overly long line

flake8 was complaining.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Tim Wiederhake 2020-12-15 17:24:47 +01:00 committed by Michal Privoznik
parent 37ffe24968
commit 9d25f2fe16

View File

@ -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