summaryrefslogtreecommitdiffstats
path: root/Lib/xmlcore/dom/minidom.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2006-04-06 01:29:04 (GMT)
committerFred Drake <fdrake@acm.org>2006-04-06 01:29:04 (GMT)
commit9ea179fa7da13aa68c42a86cb9b315b0d9ea7aaf (patch)
treeef22f1e5c391f2792d2031dbdce7802c65a024b2 /Lib/xmlcore/dom/minidom.py
parent8038163ee65252b028148bb6fd10a5361831f277 (diff)
downloadcpython-9ea179fa7da13aa68c42a86cb9b315b0d9ea7aaf.zip
cpython-9ea179fa7da13aa68c42a86cb9b315b0d9ea7aaf.tar.gz
cpython-9ea179fa7da13aa68c42a86cb9b315b0d9ea7aaf.tar.bz2
remove much of the Python-version compatibility cruft; the minimum Python
version this should support is Python 2.3
Diffstat (limited to 'Lib/xmlcore/dom/minidom.py')
-rw-r--r--Lib/xmlcore/dom/minidom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/xmlcore/dom/minidom.py b/Lib/xmlcore/dom/minidom.py
index 54620e1..d4f34b7 100644
--- a/Lib/xmlcore/dom/minidom.py
+++ b/Lib/xmlcore/dom/minidom.py
@@ -31,7 +31,7 @@ _nodeTypes_with_children = (xmlcore.dom.Node.ELEMENT_NODE,
xmlcore.dom.Node.ENTITY_REFERENCE_NODE)
-class Node(xmlcore.dom.Node, GetattrMagic):
+class Node(xmlcore.dom.Node):
namespaceURI = None # this is non-null only for elements and attributes
parentNode = None
ownerDocument = None
@@ -459,7 +459,7 @@ defproperty(Attr, "localName", doc="Namespace-local name of this attribute.")
defproperty(Attr, "schemaType", doc="Schema type for this attribute.")
-class NamedNodeMap(NewStyle, GetattrMagic):
+class NamedNodeMap(object):
"""The attribute list is a transient interface to the underlying
dictionaries. Mutations here will change the underlying element's
dictionary.
@@ -613,7 +613,7 @@ defproperty(NamedNodeMap, "length",
AttributeList = NamedNodeMap
-class TypeInfo(NewStyle):
+class TypeInfo(object):
__slots__ = 'namespace', 'name'
def __init__(self, namespace, name):
@@ -1146,7 +1146,7 @@ class CDATASection(Text):
writer.write("<![CDATA[%s]]>" % self.data)
-class ReadOnlySequentialNamedNodeMap(NewStyle, GetattrMagic):
+class ReadOnlySequentialNamedNodeMap(object):
__slots__ = '_seq',
def __init__(self, seq=()):
@@ -1418,7 +1418,7 @@ class DOMImplementation(DOMImplementationLS):
def _create_document(self):
return Document()
-class ElementInfo(NewStyle):
+class ElementInfo(object):
"""Object that represents content-model information for an element.
This implementation is not expected to be used in practice; DOM