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
commit08c1d5b87a93e8d501334bdee961644c161e7c9a (patch)
tree6f054248be57a48d28317d4dade844d2869cae29 /lib
parentab8470a71bbb50ce4adf7d5707f3fa90211c3dc4 (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