From 3efbd51c55e6a4791aa79f84606417113050aede Mon Sep 17 00:00:00 2001 From: Emile Anclin Date: Thu, 25 Nov 2010 14:15:50 +0100 Subject: py3k: fix taskqueue tests --- tasksqueue.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasksqueue.py b/tasksqueue.py index 19bb4e5..ce0642b 100644 --- a/tasksqueue.py +++ b/tasksqueue.py @@ -88,6 +88,9 @@ class Task(object): def __cmp__(self, other): return cmp(self.priority, other.priority) + def __lt__(self, other): + return self.priority < other.priority + def __eq__(self, other): return self.id == other.id -- cgit v1.2.1