From a1e728afc06ed44ce2b4609b73dd8e743ef6bed8 Mon Sep 17 00:00:00 2001 From: Rob Golding Date: Sun, 7 Sep 2014 20:58:57 +0100 Subject: [PATCH] Reinstate __repr__ for Python 2.x --- tasklib/task.py | 3 +++ 1 file changed, 3 insertions(+) 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'] -- 2.39.2