@@ -567,12 +567,6 @@ def __eq__(self, other):
567567 else :
568568 return False
569569
570- def __ne__ (self , other ):
571- if isinstance (other , timedelta ):
572- return self ._cmp (other ) != 0
573- else :
574- return True
575-
576570 def __le__ (self , other ):
577571 if isinstance (other , timedelta ):
578572 return self ._cmp (other ) <= 0
@@ -804,11 +798,6 @@ def __eq__(self, other):
804798 return self ._cmp (other ) == 0
805799 return NotImplemented
806800
807- def __ne__ (self , other ):
808- if isinstance (other , date ):
809- return self ._cmp (other ) != 0
810- return NotImplemented
811-
812801 def __le__ (self , other ):
813802 if isinstance (other , date ):
814803 return self ._cmp (other ) <= 0
@@ -1079,12 +1068,6 @@ def __eq__(self, other):
10791068 else :
10801069 return False
10811070
1082- def __ne__ (self , other ):
1083- if isinstance (other , time ):
1084- return self ._cmp (other , allow_mixed = True ) != 0
1085- else :
1086- return True
1087-
10881071 def __le__ (self , other ):
10891072 if isinstance (other , time ):
10901073 return self ._cmp (other ) <= 0
@@ -1651,14 +1634,6 @@ def __eq__(self, other):
16511634 else :
16521635 return False
16531636
1654- def __ne__ (self , other ):
1655- if isinstance (other , datetime ):
1656- return self ._cmp (other , allow_mixed = True ) != 0
1657- elif not isinstance (other , date ):
1658- return NotImplemented
1659- else :
1660- return True
1661-
16621637 def __le__ (self , other ):
16631638 if isinstance (other , datetime ):
16641639 return self ._cmp (other ) <= 0
0 commit comments