[Python-checkins] r82761 - python/branches/py3k/Lib/xml/dom/expatbuilder.py

georg.brandl python-checkins at python.org
Sat Jul 10 13:40:13 CEST 2010


Author: georg.brandl
Date: Sat Jul 10 13:40:13 2010
New Revision: 82761

Log:
#1434090: properly append child in expatbuilder doctype handler.

Modified:
   python/branches/py3k/Lib/xml/dom/expatbuilder.py

Modified: python/branches/py3k/Lib/xml/dom/expatbuilder.py
==============================================================================
--- python/branches/py3k/Lib/xml/dom/expatbuilder.py	(original)
+++ python/branches/py3k/Lib/xml/dom/expatbuilder.py	Sat Jul 10 13:40:13 2010
@@ -242,7 +242,7 @@
         doctype = self.document.implementation.createDocumentType(
             doctypeName, publicId, systemId)
         doctype.ownerDocument = self.document
-        self.document.childNodes.append(doctype)
+        _append_child(self.document, doctype)
         self.document.doctype = doctype
         if self._filter and self._filter.acceptNode(doctype) == FILTER_REJECT:
             self.document.doctype = None


More information about the Python-checkins mailing list