From f4b7a02e932671c6e54e6b48340173cc859ab4c0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 26 Jan 2015 09:57:07 +0200 Subject: Issue #21408: The default __ne__() now returns NotImplemented if __eq__() returned NotImplemented. Removed incorrect implementations of __ne__(). --- Lib/_collections_abc.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Lib/_collections_abc.py') diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index 294a7b193c..33b59aba1b 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) -- cgit v1.2.1