From cb4c561091382faf1c2739d3a0869f96e8ec2147 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Mon, 13 Apr 2020 14:20:03 +0200 Subject: [PATCH] [modules/taskwarrior] quotes --- modules/contrib/taskwarrior.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/contrib/taskwarrior.py b/modules/contrib/taskwarrior.py index a61ccb2..076652d 100644 --- a/modules/contrib/taskwarrior.py +++ b/modules/contrib/taskwarrior.py @@ -25,12 +25,12 @@ class Module(bumblebee.engine.Module): super(Module, self).__init__(engine, config, bumblebee.output.Widget( full_text=self.output)) - self._pending_tasks_count = "0" + self._pending_tasks_count = '0' def update(self, widgets): """Return a string with the number of pending tasks from TaskWarrior.""" try: - taskrc = self.parameter("taskrc", "~/.taskrc") + taskrc = self.parameter('taskrc', '~/.taskrc') w = TaskWarrior(config_filename=taskrc) pending_tasks = w.filter_tasks({'status': 'pending'}) self._pending_tasks_count = str(len(pending_tasks)) @@ -39,4 +39,6 @@ class Module(bumblebee.engine.Module): def output(self, _): """Format the task counter to output in bumblebee.""" - return "{}".format(self._pending_tasks_count) + return '{}'.format(self._pending_tasks_count) + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4