diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 12:05:05 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 12:05:05 +0200 |
commit | 08448a1f4d57e4dd35936b9e43259438d3246c06 (patch) | |
tree | 457d0934f5c53c5acdf93b0a676a0f45cb6ec4fb /Lib/xml | |
parent | 57f7db312210fcdc5db00f8e6a67f682ced342e3 (diff) | |
download | cpython-git-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.gz |
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/dom/minidom.py | 3 | ||||
-rw-r--r-- | Lib/xml/etree/ElementTree.py | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index c76b14d6a4..a5d813f932 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -545,9 +545,6 @@ class NamedNodeMap(object): def __lt__(self, other): return self._cmp(other) < 0 - def __ne__(self, other): - return self._cmp(other) != 0 - def __getitem__(self, attname_or_tuple): if isinstance(attname_or_tuple, tuple): return self._attrsNS[attname_or_tuple] diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index ca6c7d6f71..4c109a2f61 100644 --- a/Lib/xml/etree/ElementTree.py +++ b/Lib/xml/etree/ElementTree.py @@ -532,10 +532,6 @@ class QName: if isinstance(other, QName): return self.text == other.text return self.text == other - def __ne__(self, other): - if isinstance(other, QName): - return self.text != other.text - return self.text != other # -------------------------------------------------------------------- |