diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-25 14:15:50 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-25 14:15:50 +0100 |
commit | 3efbd51c55e6a4791aa79f84606417113050aede (patch) | |
tree | 394719929df3d05959de680b2298ca06d8388b9a | |
parent | 8e09acd966ade8febcc92119491d0f45ed9a315f (diff) | |
download | logilab-common-3efbd51c55e6a4791aa79f84606417113050aede.tar.gz |
py3k: fix taskqueue tests
-rw-r--r-- | tasksqueue.py | 3 |
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 |