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

@ -2255,9 +2255,6 @@ class Parameter:
self._default == other._default and
self._annotation == other._annotation)
def __ne__(self, other):
return not self.__eq__(other)
class BoundArguments:
"""Result of `Signature.bind` call. Holds the mapping of arguments
@ -2342,9 +2339,6 @@ class BoundArguments:
self.signature == other.signature and
self.arguments == other.arguments)
def __ne__(self, other):
return not self.__eq__(other)
class Signature:
"""A Signature object represents the overall signature of a function.
@ -2559,9 +2553,6 @@ class Signature:
return (isinstance(other, Signature) and
self._hash_basis() == other._hash_basis())
def __ne__(self, other):
return not self.__eq__(other)
def _bind(self, args, kwargs, *, partial=False):
"""Private method. Don't use directly."""