diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-05 03:00:54 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-05-05 03:00:54 -0400 |
commit | 4aca4845a3e536d0138eaebfe8b7b7b3817ca233 (patch) | |
tree | ce0f3fa994f331ff5a0641940f1f46acc3916d5f /pkg_resources.py | |
parent | 5a07c8be339c93f1d1d2733498bc1133fb1123db (diff) | |
download | external_python_setuptools-4aca4845a3e536d0138eaebfe8b7b7b3817ca233.tar.gz external_python_setuptools-4aca4845a3e536d0138eaebfe8b7b7b3817ca233.tar.bz2 external_python_setuptools-4aca4845a3e536d0138eaebfe8b7b7b3817ca233.zip |
Reformat for consistency
Diffstat (limited to 'pkg_resources.py')
-rw-r--r-- | pkg_resources.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index dc673e64..8788eca1 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -2211,20 +2211,27 @@ class Distribution(object): self.platform, ) - def __hash__(self): return hash(self.hashcmp) + def __hash__(self): + return hash(self.hashcmp) + def __lt__(self, other): return self.hashcmp < other.hashcmp + def __le__(self, other): return self.hashcmp <= other.hashcmp + def __gt__(self, other): return self.hashcmp > other.hashcmp + def __ge__(self, other): return self.hashcmp >= other.hashcmp + def __eq__(self, other): if not isinstance(other, self.__class__): # It's not a Distribution, so they are not equal return False return self.hashcmp == other.hashcmp + def __ne__(self, other): return not self == other |