diff options
author | Windson yang <wiwindson@outlook.com> | 2019-06-01 06:33:16 (GMT) |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2019-06-01 06:33:16 (GMT) |
commit | 5ac0b988fd5f1428efe35329c531c7b5c74d37f6 (patch) | |
tree | d76418f9f0e27f27a70f392d1e8eb1b4161769ac /Doc/library/xml.dom.minidom.rst | |
parent | 354227a1e90036d8c1481a211746de912c6c7c33 (diff) | |
download | cpython-5ac0b988fd5f1428efe35329c531c7b5c74d37f6.zip cpython-5ac0b988fd5f1428efe35329c531c7b5c74d37f6.tar.gz cpython-5ac0b988fd5f1428efe35329c531c7b5c74d37f6.tar.bz2 |
bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)
Diffstat (limited to 'Doc/library/xml.dom.minidom.rst')
-rw-r--r-- | Doc/library/xml.dom.minidom.rst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst index 2423a0c..8711242 100644 --- a/Doc/library/xml.dom.minidom.rst +++ b/Doc/library/xml.dom.minidom.rst @@ -134,11 +134,12 @@ module documentation. This section lists the differences between the API and .. method:: Node.writexml(writer, indent="", addindent="", newl="") - Write XML to the writer object. The writer should have a :meth:`write` method - which matches that of the file object interface. The *indent* parameter is the - indentation of the current node. The *addindent* parameter is the incremental - indentation to use for subnodes of the current one. The *newl* parameter - specifies the string to use to terminate newlines. + Write XML to the writer object. The writer receives texts but not bytes as input, + it should have a :meth:`write` method which matches that of the file object + interface. The *indent* parameter is the indentation of the current node. + The *addindent* parameter is the incremental indentation to use for subnodes + of the current one. The *newl* parameter specifies the string to use to + terminate newlines. For the :class:`Document` node, an additional keyword argument *encoding* can be used to specify the encoding field of the XML header. |