]> granicus.if.org Git - python/commitdiff
bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)
authorWindson yang <wiwindson@outlook.com>
Sat, 1 Jun 2019 06:33:16 +0000 (14:33 +0800)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 1 Jun 2019 06:33:16 +0000 (08:33 +0200)
Doc/library/xml.dom.minidom.rst

index 2423a0c15691f4e9b72cb6f97605d8b1a563baa5..8711242d95d741c320668a4bbe3d26ba5eb6d0d3 100644 (file)
@@ -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.