Module: check_mk
Branch: master
Commit: ab3569bf19533445894ed0ec477dfe683c5da6a6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ab3569bf195334…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Oct 24 15:34:16 2015 +0200
Minor code cleanup: one line for each import
---
modules/check_mk.py | 14 ++++++++++++--
modules/check_mk_base.py | 9 ++++++++-
2 files changed, 20 insertions(+), 3 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 9741829..5e3d0f8 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -31,8 +31,18 @@
# - cluster_name - Name of a cluster (string)
# - realhost_name - Name of a *real* host, not a cluster (string)
-import os, sys, socket, time, getopt, re, stat, py_compile, urllib, inspect
-import subprocess, fcntl
+import os
+import sys
+import time
+import socket
+import getopt
+import re
+import stat
+import urllib
+import subprocess
+import fcntl
+import py_compile
+import inspect
# These variable will be substituted at 'make dist' time
check_mk_version = '(inofficial)'
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index dd6a756..5a8099f 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -42,7 +42,14 @@ import sys
# to python module names like "random"
sys.path.pop(0)
-import socket, os, time, re, signal, math, tempfile, traceback
+import socket
+import os
+import time
+import re
+import signal
+import math
+import tempfile
+import traceback
# PLANNED CLEANUP:
# - central functions for outputting verbose information and bailing