Fix mathematical meaning of the < operator.

This is used for alphabetical queue ordering.
This commit is contained in:
Vincent Driessen 2012-01-27 11:36:39 +01:00
parent aa030e0e36
commit 62ae299114
1 changed files with 1 additions and 1 deletions

View File

@ -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)