Fix some issues for PyLint 1.7.2 (#8356)

* Fix some issues for PyLint 1.7.2

* More fixes

* Revert position change for cover
This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-07-05 20:02:16 -07:00
1 parent 83a5f932d1
commit 5779d64e98
66 files changed
+176 -272

No files matched your search

@@ -147,13 +147,13 @@ class OpenHardwareMonitorData(object):
"""Recursively loop through child objects, finding the values."""
result = devices.copy()
if len(json[OHM_CHILDREN]) > 0:
if json[OHM_CHILDREN]:
for child_index in range(0, len(json[OHM_CHILDREN])):
child_path = path.copy()
child_path.append(child_index)
child_names = names.copy()
if len(path) > 0:
if path:
child_names.append(json[OHM_NAME])
obj = json[OHM_CHILDREN][child_index]