From ddba5eee3c257457548b5374a949b8980cd6ac25 Mon Sep 17 00:00:00 2001 From: E Kawashima Date: Fri, 30 Nov 2018 23:03:00 +0900 Subject: [PATCH 1/2] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814) (cherry picked from commit b7c2182604d5796b5af4c837991aa0b8c8a2d41f) --- Doc/library/xml.dom.minidom.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index 40470e8736e7e43..d5d7b20efe60b65 100644 --- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -156,7 +156,7 @@ module documentation. This section lists the differences between the API and encoding. Encoding this string in an encoding other than UTF-8 is likely incorrect, since UTF-8 is the default encoding of XML. -.. method:: Node.toprettyxml(indent="", newl="", encoding="") +.. method:: Node.toprettyxml(indent="\t", newl="\n", encoding=None) Return a pretty-printed version of the document. *indent* specifies the indentation string and defaults to a tabulator; *newl* specifies the string From 946e8f733a02b49e12c5fecb4054554a019bae4e Mon Sep 17 00:00:00 2001 From: Eisuke Kawashima Date: Sat, 1 Dec 2018 01:20:34 +0900 Subject: [PATCH 2/2] [3.6] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814). (cherry picked from commit b7c2182604d5796b5af4c837991aa0b8c8a2d41f) Co-authored-by: E Kawashima