summaryrefslogtreecommitdiffstats
path: root/Lib/_pydecimal.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-31 10:05:05 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-31 10:05:05 (GMT)
commit08448a1f4d57e4dd35936b9e43259438d3246c06 (patch)
tree457d0934f5c53c5acdf93b0a676a0f45cb6ec4fb /Lib/_pydecimal.py
parent57f7db312210fcdc5db00f8e6a67f682ced342e3 (diff)
downloadcpython-08448a1f4d57e4dd35936b9e43259438d3246c06.zip
cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.gz
cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.bz2
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
Diffstat (limited to 'Lib/_pydecimal.py')
-rw-r--r--Lib/_pydecimal.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/_pydecimal.py b/Lib/_pydecimal.py
index 659e370..ca6c4bd 100644
--- a/Lib/_pydecimal.py
+++ b/Lib/_pydecimal.py
@@ -923,15 +923,6 @@ class Decimal(object):
return False
return self._cmp(other) == 0
- def __ne__(self, other, context=None):
- self, other = _convert_for_comparison(self, other, equality_op=True)
- if other is NotImplemented:
- return other
- if self._check_nans(other, context):
- return True
- return self._cmp(other) != 0
-
-
def __lt__(self, other, context=None):
self, other = _convert_for_comparison(self, other)
if other is NotImplemented: