From 62ae2991146c2fbdaee9ca607d4a568b1b4a97f0 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Fri, 27 Jan 2012 11:36:39 +0100 Subject: [PATCH] Fix mathematical meaning of the < operator. This is used for alphabetical queue ordering. --- rq/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index f4422db..7614547 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -191,7 +191,7 @@ class Queue(object): def __lt__(self, other): if not isinstance(other, Queue): raise TypeError('Cannot compare queues to other objects.') - return self.name <= other.name + return self.name < other.name def __hash__(self): return hash(self.name)