]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/index.py
get: adjust for python 3 and test there
[bup.git] / lib / bup / index.py
index 2e7e5eca7a9e2c3f043423c8f0cbc296d51191ea..ae6201853f45b9f4e7dc7816d03cdc7fda8895ec 100644 (file)
@@ -8,11 +8,6 @@ from bup.compat import range
 from bup.helpers import (add_error, log, merge_iter, mmap_readwrite,
                          progress, qprogress, resolve_parent, slashappend)
 
-if compat.py_maj > 2:
-    from bup.compat import buffer
-
-import sys
-
 EMPTY_SHA = b'\0' * 20
 FAKE_SHA = b'\x01' * 20
 
@@ -305,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):
@@ -314,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):