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