diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:04:15 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 08:04:15 (GMT) |
commit | 34af5023fc1e74c2d6a7537a11148885c84d9cb4 (patch) | |
tree | 7d0798f2543f647ac94acef12bd9ebc71fe6dd29 /Lib/_collections_abc.py | |
parent | 4e1942bcd8a3904047bf96a16305f0e1e4736b5c (diff) | |
parent | f4b7a02e932671c6e54e6b48340173cc859ab4c0 (diff) | |
download | cpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.zip cpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.tar.gz cpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.tar.bz2 |
Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
Diffstat (limited to 'Lib/_collections_abc.py')
-rw-r--r-- | Lib/_collections_abc.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index 9a84f4a..3d3f07b 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -224,9 +224,6 @@ class Set(Sized, Iterable, Container): return NotImplemented return len(self) == len(other) and self.__le__(other) - def __ne__(self, other): - return not (self == other) - @classmethod def _from_iterable(cls, it): '''Construct an instance of the class from any iterable input. @@ -451,9 +448,6 @@ class Mapping(Sized, Iterable, Container): return NotImplemented return dict(self.items()) == dict(other.items()) - def __ne__(self, other): - return not (self == other) - Mapping.register(mappingproxy) |