]> arthur.barton.de Git - bup.git/commitdiff
index: fix Entry comparison methods
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 23:20:09 +0000 (00:20 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 19:29:26 +0000 (13:29 -0600)
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 <johannes@sipsolutions.net>
lib/bup/index.py

index 9873bc6889996aa18197284492de466993f9d13f..ae6201853f45b9f4e7dc7816d03cdc7fda8895ec 100644 (file)
@@ -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):