remove more cruft no longer needed

This commit is contained in:
Fred Drake 2006-04-06 01:32:26 +00:00
parent 9ea179fa7d
commit 70d044ba67
1 changed files with 2 additions and 4 deletions

View File

@ -20,8 +20,6 @@
from xmlcore.dom.minicompat import * from xmlcore.dom.minicompat import *
from xmlcore.dom.xmlbuilder import DOMImplementationLS, DocumentLS from xmlcore.dom.xmlbuilder import DOMImplementationLS, DocumentLS
_TupleType = type(())
# This is used by the ID-cache invalidation checks; the list isn't # This is used by the ID-cache invalidation checks; the list isn't
# actually complete, since the nodes being checked will never be the # actually complete, since the nodes being checked will never be the
# DOCUMENT_NODE or DOCUMENT_FRAGMENT_NODE. (The node being checked is # DOCUMENT_NODE or DOCUMENT_FRAGMENT_NODE. (The node being checked is
@ -523,7 +521,7 @@ def __cmp__(self, other):
return cmp(id(self), id(other)) return cmp(id(self), id(other))
def __getitem__(self, attname_or_tuple): def __getitem__(self, attname_or_tuple):
if isinstance(attname_or_tuple, _TupleType): if isinstance(attname_or_tuple, tuple):
return self._attrsNS[attname_or_tuple] return self._attrsNS[attname_or_tuple]
else: else:
return self._attrs[attname_or_tuple] return self._attrs[attname_or_tuple]
@ -1170,7 +1168,7 @@ def getNamedItemNS(self, namespaceURI, localName):
return n return n
def __getitem__(self, name_or_tuple): def __getitem__(self, name_or_tuple):
if isinstance(name_or_tuple, _TupleType): if isinstance(name_or_tuple, tuple):
node = self.getNamedItemNS(*name_or_tuple) node = self.getNamedItemNS(*name_or_tuple)
else: else:
node = self.getNamedItem(name_or_tuple) node = self.getNamedItem(name_or_tuple)