Module: check_mk
Branch: master
Commit: 37d5e90793c80aa5e45eae2366cc9a0a695fc71e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37d5e90793c80a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Aug 23 08:12:08 2016 +0200
Replaced own function with builtin one
---
web/htdocs/lib.py | 6 ------
web/htdocs/wato.py | 2 +-
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/web/htdocs/lib.py b/web/htdocs/lib.py
index 4fc7edd..f737d92 100644
--- a/web/htdocs/lib.py
+++ b/web/htdocs/lib.py
@@ -376,12 +376,6 @@ def isint(i):
return False
-def set_is_disjoint(a, b):
- for elem in a:
- if elem in b:
- return False
- return True
-
aquire_lock = store.aquire_lock
release_lock = store.release_lock
have_lock = store.have_lock
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index e8887be..b2cde70 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -12479,7 +12479,7 @@ def mode_edit_ruleset(phase):
img = 'imatch'
else:
new_keys = set(value.keys()) # pylint: disable=no-member
- if set_is_disjoint(match_keys, new_keys):
+ if match_keys.isdisjoint(new_keys):
title = _("This rule matches and defines new
parameters.")
img = 'match'
elif new_keys.issubset(match_keys):