mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
37ffe24968
commit
9d25f2fe16
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user