summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-15 13:53:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-15 13:53:20 (GMT)
commit9afa5738ccd65da4c771dd786960155245707839 (patch)
treec0520bc1618e444fec5c30de8f5cad956c89ea6d
parent83a4a8a6c7a501884881422694b49dd803255bec (diff)
downloadcpython-9afa5738ccd65da4c771dd786960155245707839.zip
cpython-9afa5738ccd65da4c771dd786960155245707839.tar.gz
cpython-9afa5738ccd65da4c771dd786960155245707839.tar.bz2
Patch #527427: minidom fails to use NodeList sometimes.
-rw-r--r--Lib/xml/dom/minidom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 75ff3c3..e258472 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -584,10 +584,10 @@ class Element(Node):
return self._attrsNS.has_key((namespaceURI, localName))
def getElementsByTagName(self, name):
- return _getElementsByTagNameHelper(self, name, [])
+ return _getElementsByTagNameHelper(self, name, NodeList())
def getElementsByTagNameNS(self, namespaceURI, localName):
- return _getElementsByTagNameNSHelper(self, namespaceURI, localName, [])
+ return _getElementsByTagNameNSHelper(self, namespaceURI, localName, NodeList())
def __repr__(self):
return "<DOM Element: %s at %s>" % (self.tagName, id(self))
@@ -932,10 +932,10 @@ class Document(Node):
return a
def getElementsByTagName(self, name):
- return _getElementsByTagNameHelper(self, name, [])
+ return _getElementsByTagNameHelper(self, name, NodeList())
def getElementsByTagNameNS(self, namespaceURI, localName):
- return _getElementsByTagNameNSHelper(self, namespaceURI, localName, [])
+ return _getElementsByTagNameNSHelper(self, namespaceURI, localName, NodeList())
def writexml(self, writer, indent="", addindent="", newl=""):
writer.write('<?xml version="1.0" ?>\n')