From: Rob Golding Date: Sun, 7 Sep 2014 19:58:57 +0000 (+0100) Subject: Reinstate __repr__ for Python 2.x X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/a1e728afc06ed44ce2b4609b73dd8e743ef6bed8?ds=inline Reinstate __repr__ for Python 2.x --- diff --git a/tasklib/task.py b/tasklib/task.py index 6fbce77..65679dc 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -44,6 +44,9 @@ class TaskResource(object): s = s.encode('utf-8') return s + def __repr__(self): + return str(self) + class TaskAnnotation(TaskResource): read_only_fields = ['entry', 'description']