Module: check_mk
Branch: master
Commit: 39aa2b1a8d6fa0bf44f16470e50ffa5a863531ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=39aa2b1a8d6fa0…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Jul 27 09:02:42 2018 +0200
Fixed and enabled multiple-imports warning.
Change-Id: I1c39b41bea0b33a818a2c847cadb6ac938ae71b7
---
cmk/cpu_tracking.py | 3 ++-
cmk/gui/hooks.py | 3 ++-
cmk_base/localize.py | 5 ++++-
tests/pylint/pylintrc | 1 -
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/cmk/cpu_tracking.py b/cmk/cpu_tracking.py
index 740351c..a839d42 100644
--- a/cmk/cpu_tracking.py
+++ b/cmk/cpu_tracking.py
@@ -24,7 +24,8 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import os, time
+import os
+import time
try:
_
diff --git a/cmk/gui/hooks.py b/cmk/gui/hooks.py
index 521d175..9c346e5 100644
--- a/cmk/gui/hooks.py
+++ b/cmk/gui/hooks.py
@@ -73,7 +73,8 @@ def call(name, *args):
hk(*args)
except Exception, e:
if config.debug:
- import traceback, StringIO
+ import StringIO
+ import traceback
txt = StringIO.StringIO()
t, v, tb = sys.exc_info()
traceback.print_exception(t, v, tb, None, txt)
diff --git a/cmk_base/localize.py b/cmk_base/localize.py
index 0f61cb7..5c49b82 100644
--- a/cmk_base/localize.py
+++ b/cmk_base/localize.py
@@ -24,8 +24,11 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import sys, getopt, os, datetime
+import datetime
+import getopt
+import os
import subprocess
+import sys
import cmk.tty as tty
import cmk.paths
diff --git a/tests/pylint/pylintrc b/tests/pylint/pylintrc
index 0429ab7..23a90f2 100644
--- a/tests/pylint/pylintrc
+++ b/tests/pylint/pylintrc
@@ -16,7 +16,6 @@ disable=
inconsistent-return-statements,
logging-not-lazy,
missing-docstring,
- multiple-imports,
no-else-return,
no-self-use,
protected-access,