[libvirt PATCH 01/29] cpu-cpuid: Shorten overly long line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



flake8 was complaining.

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 tests/cputestdata/cpu-cpuid.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux