Fix bad-whitespace errors found by pylint

This commit is contained in:
Frederic Junod 2017-10-13 17:06:18 +02:00
parent 7af57c7fc4
commit 57204a215e
23 changed files with 66 additions and 66 deletions

View file

@ -47,12 +47,12 @@ class Module(bumblebee.engine.Module):
self._count = 0
def updates(self, widget):
return '/'.join(map(lambda x: str(widget.get(x,0)), repos))
return '/'.join(map(lambda x: str(widget.get(x, 0)), repos))
def update(self, widgets):
path = os.path.dirname(os.path.abspath(__file__))
if self._count == 0:
thread = threading.Thread(target=get_pacman_info, args=(widgets[0],path))
thread = threading.Thread(target=get_pacman_info, args=(widgets[0], path))
thread.start()
# TODO: improve this waiting mechanism a bit
@ -60,7 +60,7 @@ class Module(bumblebee.engine.Module):
self._count = 0 if self._count > 300 else self._count
def state(self, widget):
weightedCount = sum(map(lambda x: (len(repos)-x[0]) * widget.get(x[1],0), enumerate(repos)))
weightedCount = sum(map(lambda x: (len(repos)-x[0]) * widget.get(x[1], 0), enumerate(repos)))
if weightedCount < 10:
return "good"