summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-07-17 16:13:37 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-07-29 10:20:41 +0200
commitdd72ac01207a0d7ca14243bb809cd5ee3f7eaec4 (patch)
tree35479ae78d0710f83bc033fff926b846e70ac9f6 /lib
parent59eee9191f0a34296a398bd6804e41ebf7822c72 (diff)
debian_support: remove PseudoEnum.__cmp__
It uses cmp, which is no longer available in python3. But that's fine, as we are now comparing using pure key functions. So let's remove the cmp helper rather then reintroducing cmp().
Diffstat (limited to 'lib')
-rw-r--r--lib/python/debian_support.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/python/debian_support.py b/lib/python/debian_support.py
index 95d55d8ac1..b6e5134474 100644
--- a/lib/python/debian_support.py
+++ b/lib/python/debian_support.py
@@ -222,8 +222,6 @@ class PseudoEnum:
return '%s(%r)'% (self.__class__.__name__, self._name)
def __str__(self):
return self._name
- def __cmp__(self, other):
- return cmp(self._order, other._order)
def __hash__(self):
return hash(self._order)
def __lt__(self, other):

© 2014-2024 Faster IT GmbH | imprint | privacy policy