Commit 4aca4845 authored by Jason R. Coombs's avatar Jason R. Coombs

Reformat for consistency

parent 5a07c8be
...@@ -2211,20 +2211,27 @@ class Distribution(object): ...@@ -2211,20 +2211,27 @@ class Distribution(object):
self.platform, self.platform,
) )
def __hash__(self): return hash(self.hashcmp) def __hash__(self):
return hash(self.hashcmp)
def __lt__(self, other): def __lt__(self, other):
return self.hashcmp < other.hashcmp return self.hashcmp < other.hashcmp
def __le__(self, other): def __le__(self, other):
return self.hashcmp <= other.hashcmp return self.hashcmp <= other.hashcmp
def __gt__(self, other): def __gt__(self, other):
return self.hashcmp > other.hashcmp return self.hashcmp > other.hashcmp
def __ge__(self, other): def __ge__(self, other):
return self.hashcmp >= other.hashcmp return self.hashcmp >= other.hashcmp
def __eq__(self, other): def __eq__(self, other):
if not isinstance(other, self.__class__): if not isinstance(other, self.__class__):
# It's not a Distribution, so they are not equal # It's not a Distribution, so they are not equal
return False return False
return self.hashcmp == other.hashcmp return self.hashcmp == other.hashcmp
def __ne__(self, other): def __ne__(self, other):
return not self == other return not self == other
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment