소스 검색

Drop python2ish ShaFile.__cmp__.

Jelmer Vernooij 2 년 전
부모
커밋
2e30f2846c
1개의 변경된 파일0개의 추가작업 그리고 6개의 파일을 삭제
  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."""