From: paulfantom Date: Wed, 22 Jun 2016 16:29:41 +0000 (+0200) Subject: formatting + typo X-Git-Tag: v1.3.0~106^2~3 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=889075836859d1708c76f71b8482f94ec4fc4d58;p=netdata.git formatting + typo --- diff --git a/plugins.d/python.d.plugin b/plugins.d/python.d.plugin index 0407a480..f1aba16c 100755 --- a/plugins.d/python.d.plugin +++ b/plugins.d/python.d.plugin @@ -198,8 +198,8 @@ class PythonCharts(object): # scan directory specified in path and load all modules from there names = os.listdir(path) for mod in names: - if mod.replace(MODULE_EXTENSION,"") in disabled: - error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,"")) + if mod.replace(MODULE_EXTENSION, "") in disabled: + error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION, "")) continue m = self._import_module(path + mod) if m is not None: diff --git a/python.d/apache.chart.py b/python.d/apache.chart.py index b69972f3..2de62b7e 100644 --- a/python.d/apache.chart.py +++ b/python.d/apache.chart.py @@ -42,7 +42,7 @@ CHARTS = { "options": "'' absolute 1 1000000"} ]}, 'bytespersec': { - 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilbits/s' statistics apache.bytesperreq area", + 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilobits/s' statistics apache.bytesperreq area", 'lines': [ {"name": "size_sec", "options": "'' absolute 8 1000000000"} diff --git a/python.d/phpfpm.chart.py b/python.d/phpfpm.chart.py index 2e7ef6b7..f75faaca 100755 --- a/python.d/phpfpm.chart.py +++ b/python.d/phpfpm.chart.py @@ -75,7 +75,7 @@ class Service(UrlService): if str(tmp[0]) in self.assignment: try: data[self.assignment[tmp[0]]] = int(tmp[1]) - except (IndexError, ValueError) as a: + except (IndexError, ValueError): pass if len(data) == 0: return None