summaryrefslogtreecommitdiff
path: root/Lib/pathlib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:04:15 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 10:04:15 +0200
commit34af5023fc1e74c2d6a7537a11148885c84d9cb4 (patch)
tree7d0798f2543f647ac94acef12bd9ebc71fe6dd29 /Lib/pathlib.py
parent4e1942bcd8a3904047bf96a16305f0e1e4736b5c (diff)
parentf4b7a02e932671c6e54e6b48340173cc859ab4c0 (diff)
downloadcpython-git-34af5023fc1e74c2d6a7537a11148885c84d9cb4.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.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py
index dd2ccba1a6..e1b07ca955 100644
--- a/Lib/pathlib.py
+++ b/Lib/pathlib.py
@@ -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