From: Tomas Babej Date: Sun, 9 Aug 2015 00:20:39 +0000 (+0200) Subject: TaskWarrior: Default formatter needs to take an argument X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/73b53d933f2285aaa2ecf1672be44eabf2979316 TaskWarrior: Default formatter needs to take an argument --- diff --git a/tasklib/backends.py b/tasklib/backends.py index adfb9a4..6bba35d 100644 --- a/tasklib/backends.py +++ b/tasklib/backends.py @@ -155,7 +155,7 @@ class TaskWarrior(object): else: escaped_serialized_value = six.u("'{0}'").format(serialized_value) - format_default = lambda: six.u("{0}:{1}").format(field, + format_default = lambda task: six.u("{0}:{1}").format(field, escaped_serialized_value) format_func = getattr(self, 'format_{0}'.format(field),