[Python-checkins] Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814)

Serhiy Storchaka webhook-mailer at python.org
Fri Nov 30 09:03:05 EST 2018


https://github.com/python/cpython/commit/b7c2182604d5796b5af4c837991aa0b8c8a2d41f
commit: b7c2182604d5796b5af4c837991aa0b8c8a2d41f
branch: master
author: E Kawashima <e-kwsm at users.noreply.github.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018-11-30T16:03:00+02:00
summary:

Fix signature of xml.dom.minidom.Document.toprettyxml(). (GH-10814)

files:
M Doc/library/xml.dom.minidom.rst

diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index a1f334d4178e..42340802f193 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -163,7 +163,7 @@ module documentation.  This section lists the differences between the API and
       The :meth:`toxml` method now preserves the attribute order specified
       by the user.
 
-.. 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



More information about the Python-checkins mailing list