Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: third_party/logilab/common/tasksqueue.py

Issue 719313003: Revert "pylint: upgrade to 1.3.1" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/logilab/common/table.py ('k') | third_party/logilab/common/testlib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/logilab/common/table.py ('k') | third_party/logilab/common/testlib.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698