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
commitf030ab8fa0e834b41ac747ba16ded74283c23582 (patch)
tree9a9a566ee1994237f44299ec2e8d189199c26319 /lib
parent95dbfd508136a166c12d9e05bbb7f94c800ff5f7 (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