]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[2.7] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814). (GH-10827)
authorE Kawashima <e-kwsm@users.noreply.github.com>
Sat, 1 Dec 2018 12:16:00 +0000 (21:16 +0900)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 1 Dec 2018 12:16:00 +0000 (14:16 +0200)
(cherry picked from commit b7c2182604d5796b5af4c837991aa0b8c8a2d41f)

Doc/library/xml.dom.minidom.rst

index f91259a8fb5c29fddeb23566c2441e4a50ed23e3..2f4022428db0d316a04b437d82c91b1107d5d796 100644 (file)
@@ -169,7 +169,7 @@ module documentation.  This section lists the differences between the API and
       the *encoding* argument was introduced; see :meth:`writexml`.
 
 
-.. 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