summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 07:57:07 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 07:57:07 (GMT)
commitf4b7a02e932671c6e54e6b48340173cc859ab4c0 (patch)
treeeaa9107bb2885a9ed40f9c697a31049826324dde /Lib/lib2to3
parent155ceaa454ad9a623cade5ed326e6e1e70ce109d (diff)
downloadcpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.zip
cpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.tar.gz
cpython-f4b7a02e932671c6e54e6b48340173cc859ab4c0.tar.bz2
Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
Diffstat (limited to 'Lib/lib2to3')
-rw-r--r--Lib/lib2to3/pytree.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/lib2to3/pytree.py b/Lib/lib2to3/pytree.py
index c4a1be3..ad3592c 100644
--- a/Lib/lib2to3/pytree.py
+++ b/Lib/lib2to3/pytree.py
@@ -64,16 +64,6 @@ class Base(object):
__hash__ = None # For Py3 compatibility.
- def __ne__(self, other):
- """
- Compare two nodes for inequality.
-
- This calls the method _eq().
- """
- if self.__class__ is not other.__class__:
- return NotImplemented
- return not self._eq(other)
-
def _eq(self, other):
"""
Compare two nodes for equality.