From f4b7a02e932671c6e54e6b48340173cc859ab4c0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 26 Jan 2015 09:57:07 +0200 Subject: Issue #21408: The default __ne__() now returns NotImplemented if __eq__() returned NotImplemented. Removed incorrect implementations of __ne__(). --- Lib/pathlib.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'Lib/pathlib.py') 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 -- cgit v1.2.1