diff options
Diffstat (limited to 'tasksqueue.py')
-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 |