mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] Fix typos in ElementTree documentation (GH-108848) (GH-114854)
PI objects instead of comment objects.
(cherry picked from commit de6f97cd35
)
Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com>
This commit is contained in:
parent
09b8b14e05
commit
600724d442
1 changed files with 3 additions and 3 deletions
|
@ -664,7 +664,7 @@ Functions
|
||||||
given. Returns an element instance, representing a processing instruction.
|
given. Returns an element instance, representing a processing instruction.
|
||||||
|
|
||||||
Note that :class:`XMLParser` skips over processing instructions
|
Note that :class:`XMLParser` skips over processing instructions
|
||||||
in the input instead of creating comment objects for them. An
|
in the input instead of creating PI objects for them. An
|
||||||
:class:`ElementTree` will only contain processing instruction nodes if
|
:class:`ElementTree` will only contain processing instruction nodes if
|
||||||
they have been inserted into to the tree using one of the
|
they have been inserted into to the tree using one of the
|
||||||
:class:`Element` methods.
|
:class:`Element` methods.
|
||||||
|
@ -1302,8 +1302,8 @@ TreeBuilder Objects
|
||||||
|
|
||||||
.. method:: pi(target, text)
|
.. method:: pi(target, text)
|
||||||
|
|
||||||
Creates a comment with the given *target* name and *text*. If
|
Creates a process instruction with the given *target* name and *text*.
|
||||||
``insert_pis`` is true, this will also add it to the tree.
|
If ``insert_pis`` is true, this will also add it to the tree.
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. versionadded:: 3.8
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue