summaryrefslogtreecommitdiff
path: root/tasksqueue.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-11-25 14:15:50 +0100
committerEmile Anclin <emile.anclin@logilab.fr>2010-11-25 14:15:50 +0100
commit3efbd51c55e6a4791aa79f84606417113050aede (patch)
tree394719929df3d05959de680b2298ca06d8388b9a /tasksqueue.py
parent8e09acd966ade8febcc92119491d0f45ed9a315f (diff)
downloadlogilab-common-3efbd51c55e6a4791aa79f84606417113050aede.tar.gz
py3k: fix taskqueue tests
Diffstat (limited to 'tasksqueue.py')
-rw-r--r--tasksqueue.py3
1 files changed, 3 insertions, 0 deletions
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