diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 09:57:07 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-26 09:57:07 +0200 |
commit | f4b7a02e932671c6e54e6b48340173cc859ab4c0 (patch) | |
tree | eaa9107bb2885a9ed40f9c697a31049826324dde /Lib/pathlib.py | |
parent | 155ceaa454ad9a623cade5ed326e6e1e70ce109d (diff) | |
download | cpython-git-f4b7a02e932671c6e54e6b48340173cc859ab4c0.tar.gz |
Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index 5d3636443e..73fd432b6c 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -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 |