Fix various pylint violations
[csit.git] / resources / libraries / python / CpuUtils.py
index 5d8b8a6..f4d52f8 100644 (file)
@@ -82,7 +82,7 @@ class CpuUtils(object):
                         ret, stderr))
             node['cpuinfo'] = list()
             for line in stdout.split("\n"):
-                if len(line) > 0 and line[0] != "#":
+                if line and line[0] != "#":
                     node['cpuinfo'].append([CpuUtils.__str2int(x) for x in
                                             line.split(",")])