diff options
author | Fred Drake <fdrake@acm.org> | 2006-04-06 01:32:26 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2006-04-06 01:32:26 (GMT) |
commit | 70d044ba67500ca8051b81269a50a9fb65676101 (patch) | |
tree | 6c213fabbf419524e5fdeb482bbf58e0c275e0f8 | |
parent | 9ea179fa7da13aa68c42a86cb9b315b0d9ea7aaf (diff) | |
download | cpython-70d044ba67500ca8051b81269a50a9fb65676101.zip cpython-70d044ba67500ca8051b81269a50a9fb65676101.tar.gz cpython-70d044ba67500ca8051b81269a50a9fb65676101.tar.bz2 |
remove more cruft no longer needed
-rw-r--r-- | Lib/xmlcore/dom/minidom.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/xmlcore/dom/minidom.py b/Lib/xmlcore/dom/minidom.py index d4f34b7..a8abd14 100644 --- a/Lib/xmlcore/dom/minidom.py +++ b/Lib/xmlcore/dom/minidom.py @@ -20,8 +20,6 @@ from xmlcore.dom import EMPTY_NAMESPACE, EMPTY_PREFIX, XMLNS_NAMESPACE, domreg from xmlcore.dom.minicompat import * from xmlcore.dom.xmlbuilder import DOMImplementationLS, DocumentLS -_TupleType = type(()) - # This is used by the ID-cache invalidation checks; the list isn't # actually complete, since the nodes being checked will never be the # DOCUMENT_NODE or DOCUMENT_FRAGMENT_NODE. (The node being checked is @@ -523,7 +521,7 @@ class NamedNodeMap(object): return cmp(id(self), id(other)) def __getitem__(self, attname_or_tuple): - if isinstance(attname_or_tuple, _TupleType): + if isinstance(attname_or_tuple, tuple): return self._attrsNS[attname_or_tuple] else: return self._attrs[attname_or_tuple] @@ -1170,7 +1168,7 @@ class ReadOnlySequentialNamedNodeMap(object): return n def __getitem__(self, name_or_tuple): - if isinstance(name_or_tuple, _TupleType): + if isinstance(name_or_tuple, tuple): node = self.getNamedItemNS(*name_or_tuple) else: node = self.getNamedItem(name_or_tuple) |