From 9afa5738ccd65da4c771dd786960155245707839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 15 Mar 2002 13:53:20 +0000 Subject: Patch #527427: minidom fails to use NodeList sometimes. --- Lib/xml/dom/minidom.py | 8 ++++---- 1 file 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 "" % (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('\n') -- cgit v0.12