From 32b771cda2be2d6f20a1f2657cc2004b76c0c57f Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Tue, 3 Nov 2020 14:57:57 +0100 Subject: [PATCH 1/2] Update xml.dom.minidom.rst The `standalone` arguments was added in Python 3.9. This information is missed in the docu. --- Doc/library/xml.dom.minidom.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index 2c78cd939243a8..2f4c869f99d0ed 100644 --- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -156,6 +156,9 @@ module documentation. This section lists the differences between the API and The :meth:`writexml` method now preserves the attribute order specified by the user. + .. versionchanged:: 3.9 + The `standalone` argument was added. + .. method:: Node.toxml(encoding=None, standalone=None) Return a string or byte string containing the XML represented by @@ -174,6 +177,9 @@ module documentation. This section lists the differences between the API and The :meth:`toxml` method now preserves the attribute order specified by the user. + .. versionchanged:: 3.9 + The `standalone` argument was added. + .. method:: Node.toprettyxml(indent="\\t", newl="\\n", encoding=None, standalone=None) @@ -190,6 +196,8 @@ module documentation. This section lists the differences between the API and The :meth:`toprettyxml` method now preserves the attribute order specified by the user. + .. versionchanged:: 3.9 + The `standalone` argument was added. .. _dom-example: From 83f734701747b6612224972c7e8774e7e505cc4d Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 9 Oct 2021 22:20:02 +0300 Subject: [PATCH 2/2] Apply suggestions from code review --- Doc/library/xml.dom.minidom.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index 2f4c869f99d0ed..dd61e8a748b1b7 100644 --- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -157,7 +157,7 @@ module documentation. This section lists the differences between the API and by the user. .. versionchanged:: 3.9 - The `standalone` argument was added. + The *standalone* parameter was added. .. method:: Node.toxml(encoding=None, standalone=None) @@ -178,7 +178,7 @@ module documentation. This section lists the differences between the API and by the user. .. versionchanged:: 3.9 - The `standalone` argument was added. + The *standalone* parameter was added. .. method:: Node.toprettyxml(indent="\\t", newl="\\n", encoding=None, standalone=None) @@ -197,7 +197,7 @@ module documentation. This section lists the differences between the API and by the user. .. versionchanged:: 3.9 - The `standalone` argument was added. + The *standalone* parameter was added. .. _dom-example: