Module: check_mk
Branch: master
Commit: d1de0857478ec18a766a57bf83919afecb01bc4b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d1de0857478ec1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 24 16:35:30 2017 +0200
Ignore pylint warning: wrong variable type detected
Change-Id: Id667af19382d8accd60cbf2b19ce8b119f348a82
---
web/htdocs/htmllib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 937e506..210d9df 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -2613,7 +2613,7 @@ class html(HTMLGenerator, RequestHandler):
counts = self.get_button_counts()
weights = counts.items()
weights.sort(cmp = lambda a,b: cmp(a[1], b[1]))
- best = dict(weights[-bestof:])
+ best = dict(weights[-bestof:]) # pylint: disable=invalid-unary-operand-type
if id_ not in best:
display="none"
self.context_button_hidden = True