Explorar o código

Drop python2ish ShaFile.__cmp__.

Jelmer Vernooij %!s(int64=2) %!d(string=hai) anos
pai
achega
2e30f2846c
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      dulwich/objects.py

+ 0 - 6
dulwich/objects.py

@@ -564,12 +564,6 @@ class ShaFile(object):
             raise TypeError
         return self.id <= other.id
 
-    def __cmp__(self, other):
-        """Compare the SHA of this object with that of the other object."""
-        if not isinstance(other, ShaFile):
-            raise TypeError
-        return cmp(self.id, other.id)  # noqa: F821
-
 
 class Blob(ShaFile):
     """A Git Blob object."""