Issue #23326: Removed __ne__ implementations. Since fixing default __ne__

implementation in issue #21408 they are redundant.
This commit is contained in:
Serhiy Storchaka 2015-01-31 12:05:05 +02:00
parent 57f7db3122
commit 08448a1f4d
20 changed files with 3 additions and 104 deletions

View file

@ -987,7 +987,6 @@ class UserList(MutableSequence):
def __lt__(self, other): return self.data < self.__cast(other)
def __le__(self, other): return self.data <= self.__cast(other)
def __eq__(self, other): return self.data == self.__cast(other)
def __ne__(self, other): return self.data != self.__cast(other)
def __gt__(self, other): return self.data > self.__cast(other)
def __ge__(self, other): return self.data >= self.__cast(other)
def __cast(self, other):
@ -1064,10 +1063,6 @@ class UserString(Sequence):
if isinstance(string, UserString):
return self.data == string.data
return self.data == string
def __ne__(self, string):
if isinstance(string, UserString):
return self.data != string.data
return self.data != string
def __lt__(self, string):
if isinstance(string, UserString):
return self.data < string.data