1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Whitespace cleanup

* remove trailing whitespace
* remove empty lines at the end of files
This commit is contained in:
Lars Kruse 2018-08-02 02:03:42 +02:00
parent ef851f0c34
commit 17f784270a
604 changed files with 2927 additions and 2945 deletions

View file

@ -75,7 +75,7 @@ except:
from urllib2 import Request
from urllib2 import urlopen
from urllib2 import URLError
def define_graph_types():
@ -131,7 +131,7 @@ def request_data():
print("API request error: {0}". format(err), file=sys.stderr)
exit(1)
except:
print("Unhandled error:", sys.exc_info()[0])
print("Unhandled error:", sys.exc_info()[0])
exit(1)
try:
result = json.loads(txt.decode("utf-8"))
@ -158,7 +158,7 @@ def write_config_worker():
print("worker_{0}_hashrate.info Hashrate of worker '{1}'".format(worker_name, val["id"]))
print("worker_{0}_hashrate.min 0".format(worker_name))
print("worker_{0}_hashrate.draw LINE1".format(worker_name))
for val in worker_data:
print("")
worker_name = "_".join(val["id"].split())
@ -234,7 +234,7 @@ def write_data_worker(data):
print("")
print("multigraph worker_shares_{0}.worker_{1}".format(account_address, worker_name))
print("wshares.value {0} ".format(val["rating"]))
def write_config():