make pep8 happy

This commit is contained in:
Nils Schneider 2015-04-01 17:34:35 +02:00
parent 29e2647ad5
commit bb2aa112c3
3 changed files with 4 additions and 4 deletions

View file

@ -159,7 +159,7 @@ class RRD(object):
ds.unknown_sec), "utf-8"))
if b'</cdp_prep>' in line:
restore.stdin.write(added_ds_num*b"""
restore.stdin.write(added_ds_num * b"""
<ds>
<primary_value> NaN </primary_value>
<secondary_value> NaN </secondary_value>
@ -173,7 +173,7 @@ class RRD(object):
restore.stdin.write(
line.replace(
b'</row>',
(added_ds_num*b'<v>NaN</v>')+b'</row>'
(added_ds_num * b'<v>NaN</v>') + b'</row>'
)
)

View file

@ -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))

View file

@ -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: