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?ds=inline;hp=e81c1cd2f8bda4c8a6d1c29d75a6835a405a08b4 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),