[Python-checkins] r43682 - python/trunk/Lib/xmlcore/dom/minidom.py

fred.drake python-checkins at python.org
Thu Apr 6 03:32:27 CEST 2006


Author: fred.drake
Date: Thu Apr  6 03:32:26 2006
New Revision: 43682

Modified:
   python/trunk/Lib/xmlcore/dom/minidom.py
Log:
remove more cruft no longer needed

Modified: python/trunk/Lib/xmlcore/dom/minidom.py
==============================================================================
--- python/trunk/Lib/xmlcore/dom/minidom.py	(original)
+++ python/trunk/Lib/xmlcore/dom/minidom.py	Thu Apr  6 03:32:26 2006
@@ -20,8 +20,6 @@
 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 @@
             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 @@
                 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)


More information about the Python-checkins mailing list