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

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

Issue 739393004: Revert "Revert "pylint: upgrade to 1.3.1"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
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
===================================================================
--- 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
« 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