| Index: third_party/logilab/common/tasksqueue.py
|
| ===================================================================
|
| --- third_party/logilab/common/tasksqueue.py (revision 293047)
|
| +++ third_party/logilab/common/tasksqueue.py (working copy)
|
| @@ -20,8 +20,9 @@
|
| __docformat__ = "restructuredtext en"
|
|
|
| from bisect import insort_left
|
| -from Queue import Queue
|
|
|
| +from six.moves import queue
|
| +
|
| LOW = 0
|
| MEDIUM = 10
|
| HIGH = 100
|
| @@ -31,11 +32,11 @@
|
| 'MEDIUM': MEDIUM,
|
| 'HIGH': HIGH,
|
| }
|
| -REVERSE_PRIORITY = dict((values, key) for key, values in PRIORITY.iteritems())
|
| +REVERSE_PRIORITY = dict((values, key) for key, values in PRIORITY.items())
|
|
|
|
|
|
|
| -class PrioritizedTasksQueue(Queue):
|
| +class PrioritizedTasksQueue(queue.Queue):
|
|
|
| def _init(self, maxsize):
|
| """Initialize the queue representation"""
|
| @@ -94,5 +95,7 @@
|
| def __eq__(self, other):
|
| return self.id == other.id
|
|
|
| + __hash__ = object.__hash__
|
| +
|
| def merge(self, other):
|
| pass
|
|
|