diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 07:57:07 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 07:57:07 (GMT) |
commit | f4b7a02e932671c6e54e6b48340173cc859ab4c0 (patch) | |
tree | eaa9107bb2885a9ed40f9c697a31049826324dde /Lib/_collections_abc.py | |
parent | 155ceaa454ad9a623cade5ed326e6e1e70ce109d (diff) | |
download | cpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.zip cpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.tar.gz cpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.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 294a7b1..33b59ab 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) |