From c7013fde92fc73e0064462954918b09541e9a84f Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Wed, 29 Jan 2020 00:20:09 +0100 Subject: [PATCH] index: fix Entry comparison methods Some of these methods are evidently not used today, but they should have proper arguments anyway. Fixes: 3ff7455dd474 ("Don't use cmp()") Signed-off-by: Johannes Berg --- lib/bup/index.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bup/index.py b/lib/bup/index.py index 9873bc6..ae62018 100644 --- a/lib/bup/index.py +++ b/lib/bup/index.py @@ -300,7 +300,7 @@ class Entry: def __eq__(self, other): return self._cmp(other) == 0 - def __ne__(): + def __ne__(self, other): return self._cmp(other) != 0 def __lt__(self, other): @@ -309,10 +309,10 @@ class Entry: def __gt__(self, other): return self._cmp(other) > 0 - def __le__(): + def __le__(self, other): return self._cmp(other) <= 0 - def __ge__(): + def __ge__(self, other): return self._cmp(other) >= 0 def write(self, f): -- 2.39.2