Fix trailing-whitespace errors found by pylint
This commit is contained in:
parent
57204a215e
commit
5f20fa6134
6 changed files with 11 additions and 12 deletions
|
@ -15,24 +15,24 @@ import bumblebee.engine
|
|||
|
||||
class Module(bumblebee.engine.Module):
|
||||
|
||||
|
||||
|
||||
def __init__(self, engine, config):
|
||||
super(Module, self).__init__(engine, config,
|
||||
bumblebee.output.Widget(full_text=self.output)
|
||||
)
|
||||
self._todos = self.count_items()
|
||||
self._todos = self.count_items()
|
||||
|
||||
|
||||
def output(self, widget):
|
||||
self._todos = self.count_items()
|
||||
return str(self._todos)
|
||||
|
||||
|
||||
|
||||
def state(self, widgets):
|
||||
if self._todos == 0:
|
||||
return "empty"
|
||||
return "items"
|
||||
|
||||
|
||||
|
||||
def count_items(filename):
|
||||
try:
|
||||
|
@ -41,7 +41,7 @@ class Module(bumblebee.engine.Module):
|
|||
with open(doc) as f:
|
||||
for i, l in enumerate(f):
|
||||
pass
|
||||
return i+1
|
||||
return i+1
|
||||
except Exception:
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue