From bb2aa112c3c6b51d16e488cfbbef8298c8594645 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 1 Apr 2015 17:34:35 +0200 Subject: [PATCH] make pep8 happy --- lib/RRD.py | 4 ++-- lib/graph.py | 2 +- lib/rrddb.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/RRD.py b/lib/RRD.py index 3c406ac..4e925a7 100644 --- a/lib/RRD.py +++ b/lib/RRD.py @@ -159,7 +159,7 @@ class RRD(object): ds.unknown_sec), "utf-8")) if b'' in line: - restore.stdin.write(added_ds_num*b""" + restore.stdin.write(added_ds_num * b""" NaN NaN @@ -173,7 +173,7 @@ class RRD(object): restore.stdin.write( line.replace( b'', - (added_ds_num*b'NaN')+b'' + (added_ds_num * b'NaN') + b'' ) ) diff --git a/lib/graph.py b/lib/graph.py index 7b45828..db1259e 100644 --- a/lib/graph.py +++ b/lib/graph.py @@ -8,7 +8,7 @@ from lib.nodes import build_mac_table def import_vis_data(graph, nodes, vis_data): macs = build_mac_table(nodes) - nodes_a = map(lambda d: 2*[d['primary']], + nodes_a = map(lambda d: 2 * [d['primary']], filter(lambda d: 'primary' in d, vis_data)) nodes_b = map(lambda d: [d['secondary'], d['of']], filter(lambda d: 'secondary' in d, vis_data)) diff --git a/lib/rrddb.py b/lib/rrddb.py index 57437a7..f1678f5 100644 --- a/lib/rrddb.py +++ b/lib/rrddb.py @@ -19,7 +19,7 @@ class RRD(object): self.displayTimeGlobal = display_time_global self.displayTimeNode = display_time_node - self.currentTimeInt = (int(time.time())/60)*60 + self.currentTimeInt = (int(time.time()) / 60) * 60 self.currentTime = str(self.currentTimeInt) try: