Issue #21408: The default __ne__() now returns NotImplemented if __eq__()

returned NotImplemented.  Removed incorrect implementations of __ne__().
This commit is contained in:
Serhiy Storchaka 2015-01-26 10:04:15 +02:00
commit 34af5023fc
11 changed files with 77 additions and 47 deletions

View file

@ -710,9 +710,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