diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 10:05:05 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 10:05:05 (GMT) |
commit | 08448a1f4d57e4dd35936b9e43259438d3246c06 (patch) | |
tree | 457d0934f5c53c5acdf93b0a676a0f45cb6ec4fb /Lib/collections/__init__.py | |
parent | 57f7db312210fcdc5db00f8e6a67f682ced342e3 (diff) | |
download | cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.zip cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.gz cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.bz2 |
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
Diffstat (limited to 'Lib/collections/__init__.py')
-rw-r--r-- | Lib/collections/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index 7925af6..ce67f0b 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -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 |