mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
This commit is contained in:
parent
155ceaa454
commit
f4b7a02e93
11 changed files with 77 additions and 47 deletions
|
@ -665,9 +665,6 @@ class PurePath(object):
|
|||
return NotImplemented
|
||||
return self._cparts == other._cparts and self._flavour is other._flavour
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self == other
|
||||
|
||||
def __hash__(self):
|
||||
try:
|
||||
return self._hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue