mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
#10781: clarify that *encoding* is not a parameter for Node objects in general.
This commit is contained in:
parent
c28036b532
commit
2c39c77285
1 changed files with 3 additions and 3 deletions
|
@ -122,7 +122,7 @@ module documentation. This section lists the differences between the API and
|
||||||
... # Work with dom.
|
... # Work with dom.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Node.writexml(writer, indent="", addindent="", newl="", encoding="")
|
.. method:: Node.writexml(writer, indent="", addindent="", newl="")
|
||||||
|
|
||||||
Write XML to the writer object. The writer should have a :meth:`write` method
|
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
|
which matches that of the file object interface. The *indent* parameter is the
|
||||||
|
@ -130,8 +130,8 @@ module documentation. This section lists the differences between the API and
|
||||||
indentation to use for subnodes of the current one. The *newl* parameter
|
indentation to use for subnodes of the current one. The *newl* parameter
|
||||||
specifies the string to use to terminate newlines.
|
specifies the string to use to terminate newlines.
|
||||||
|
|
||||||
For the :class:`Document` node, an additional keyword argument *encoding* can be
|
For the :class:`Document` node, an additional keyword argument *encoding* can
|
||||||
used to specify the encoding field of the XML header.
|
be used to specify the encoding field of the XML header.
|
||||||
|
|
||||||
|
|
||||||
.. method:: Node.toxml(encoding=None)
|
.. method:: Node.toxml(encoding=None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue