summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-10 11:40:13 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-10 11:40:13 (GMT)
commit297d97241a065fe2a341fe5f340c81566b762142 (patch)
tree68b4aa1b4b1916baf934ff60c901726533733794 /Lib/xml
parent73b1c7ba7da33ec3d6d7f1ff709210e8be7218ac (diff)
downloadcpython-297d97241a065fe2a341fe5f340c81566b762142.zip
cpython-297d97241a065fe2a341fe5f340c81566b762142.tar.gz
cpython-297d97241a065fe2a341fe5f340c81566b762142.tar.bz2
#1434090: properly append child in expatbuilder doctype handler.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/dom/expatbuilder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py
index a5354b9..a98fe03 100644
--- a/Lib/xml/dom/expatbuilder.py
+++ b/Lib/xml/dom/expatbuilder.py
@@ -242,7 +242,7 @@ class ExpatBuilder:
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