Module: check_mk
Branch: master
Commit: ccaf3ca92103ca3cab24fe0b7c1b21b8104720ff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ccaf3ca92103ca…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jul 13 10:19:53 2018 +0200
Fixed and enabled old-style-class warnings.
Change-Id: I5eab9793142a05f7a3f7505904af7db4c94af2a8
---
cmk/gui/watolib.py | 3 +--
tests/pylint/pylintrc | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index d1da847..b0c8f3f 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -3080,9 +3080,8 @@ class CREHost(WithPermissionsAndAttributes):
# | hosts. Examples are the IP address and the host tags. |
# '----------------------------------------------------------------------'
-# TODO: Make new style class
# TODO: Refactor declare_host_attribute() setting private attributes here
-class Attribute:
+class Attribute(object):
# The constructor stores name and title. If those are
# dynamic then leave them out and override name() and
# title()
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 5ce8339..c4e80d4 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -77,9 +77,8 @@ disable=
wrong-import-order,
wrong-import-position,
#---------------------------------------------------------------------------
- # The 5 warnings below have already been fixed for non-web/ code. When the
+ # The 4 warnings below have already been fixed for non-web/ code. When the
# upcoming reorganization of web/ has been landed, these should be fixed first.
- old-style-class,
simplifiable-if-statement,
unnecessary-lambda,
unnecessary-pass,