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/numbers.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Lib/numbers.py') diff --git a/Lib/numbers.py b/Lib/numbers.py index b206457dfc..7eedc63ec0 100644 --- a/Lib/numbers.py +++ b/Lib/numbers.py @@ -141,11 +141,6 @@ class Complex(Number): """self == other""" raise NotImplementedError - def __ne__(self, other): - """self != other""" - # The default __ne__ doesn't negate __eq__ until 3.0. - return not (self == other) - Complex.register(complex) -- cgit v1.2.1