From dd72ac01207a0d7ca14243bb809cd5ee3f7eaec4 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 17 Jul 2020 16:13:37 +0200 Subject: 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(). --- lib/python/debian_support.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') 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): -- cgit v1.2.3