Module: check_mk
Branch: master
Commit: 1d5a8cae050d8aa9f3f0d87d1c0ae03c9e7fc6f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d5a8cae050d8a…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Thu Jul 12 09:59:52 2018 +0200
Fixed a few unnecessary-pass warnings.
Change-Id: I53387828c1173cdc7a4633edcb2796da2f5aae7c
---
checks/winperf_phydisk | 1 -
cmk_base/ip_lookup.py | 1 -
omd/packages/omd/omd | 4 +---
3 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/checks/winperf_phydisk b/checks/winperf_phydisk
index 927e82b..3a9f726 100644
--- a/checks/winperf_phydisk
+++ b/checks/winperf_phydisk
@@ -138,7 +138,6 @@ def winperf_phydisk_convert(info):
except StopIteration:
if current_node != "":
entries.extend(finalize_block(current_node))
- pass
return entries
diff --git a/cmk_base/ip_lookup.py b/cmk_base/ip_lookup.py
index 3c3ae9b..0cd8566 100644
--- a/cmk_base/ip_lookup.py
+++ b/cmk_base/ip_lookup.py
@@ -163,7 +163,6 @@ def _initialize_ip_lookup_cache():
if cmk.debug.enabled():
raise
# TODO: Would be better to log it somewhere to make the failure transparent
- pass
return ip_lookup_cache
diff --git a/omd/packages/omd/omd b/omd/packages/omd/omd
index e2319bf..126554d 100644
--- a/omd/packages/omd/omd
+++ b/omd/packages/omd/omd
@@ -806,7 +806,6 @@ def try_chown(filename, user):
os.chown(filename, uid, gid)
except Exception, e:
sys.stderr.write("Cannot chown %s to %s: %s\n" % (filename, user,
e))
- pass
def instantiate_skel(path):
@@ -3855,8 +3854,7 @@ def kill_site_user_processes(exclude_current_and_parents=False):
os.kill(pid, 9) # SIGKILL
except OSError, e:
if e.errno == 3:
- pids.remove(pid)
- pass # No such process
+ pids.remove(pid) # No such process
else:
raise
time.sleep(1)