mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 23:38:20 +00:00
Add sort method to MigrationItem
write_excuses wants them sorted, and python3 doesn't allow sorting arbitrary objects. Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
36d3b96158
commit
f83029c55e
@ -54,6 +54,9 @@ class MigrationItem(object):
|
||||
def __hash__(self):
|
||||
return hash((self.uvname, self.version))
|
||||
|
||||
def __lt__(self, other):
|
||||
return (self.uvname, self.version) < (other.uvname, other.version)
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
return self._name
|
||||
|
Loading…
x
Reference in New Issue
Block a user