@cryptotaxi247 / netdata-1 / commits / e717a858e

Fix the last few PEP 8 compliance issues. (#4345)

* Fix remaining PEP 8 compliance issues in python.d modules. * Fix one final PEP 8 compliance issue.

Austin S. Hemmelgarn committed Oct 3, 2018 at 07:59 UTC e717a858e3bececc9ed4af7e08c6bd1d3eab59e5
5 files changed +9 -10
python.d/beanstalk.chart.py
+6 -5
@@ -110,11 +110,12 @@ CHARTS = {
110
111
112 def tube_chart_template(name):
113 - order = ['{0}_jobs_rate'.format(name),
114 - '{0}_jobs'.format(name),
115 - '{0}_connections'.format(name),
116 - '{0}_commands'.format(name),
117 - '{0}_pause'.format(name)
113 + order = [
114 + '{0}_jobs_rate'.format(name),
115 + '{0}_jobs'.format(name),
116 + '{0}_connections'.format(name),
117 + '{0}_commands'.format(name),
118 + '{0}_pause'.format(name)
119 ]
120 family = 'tube {0}'.format(name)
121
python.d/fail2ban.chart.py
+1 -2
@@ -25,8 +25,7 @@ def charts(jails):
25
26 ch = {
27 ORDER[0]: {
28 - 'options':
29 - [None, 'Jails Ban Rate', 'bans/s', 'bans', 'jail.bans', 'line'],
28 + 'options': [None, 'Jails Ban Rate', 'bans/s', 'bans', 'jail.bans', 'line'],
29 'lines': []
30 },
31 ORDER[1]: {
python.d/memcached.chart.py
+1 -1
@@ -6,7 +6,7 @@
6 from bases.FrameworkServices.SocketService import SocketService
7
8 # default module values (can be overridden per job in `config`)
9 -#update_every = 2
9 +# update_every = 2
10 priority = 60000
11 retries = 60
12
python.d/python_modules/__init__.py
-1
@@ -1 +0,0 @@
1 -
python.d/web_log.chart.py
+1 -1
@@ -502,7 +502,7 @@ class Web:
502 self.order.append('detailed_response_codes%s' % code)
503 self.definitions['detailed_response_codes%s' % code] = {
504 'options': [None, 'Detailed Response Codes %s' % code[1:], 'requests/s', 'responses',
505 - 'web_log.detailed_response_codes%s' % code, 'stacked'],
505 + 'web_log.detailed_response_codes%s' % code, 'stacked'],
506 'lines': []
507 }
508