From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 1 Feb 2024 09:41:01 +0000 (+0100) Subject: [3.12] Fix typos in ElementTree documentation (GH-108848) (GH-114854) X-Git-Tag: v3.12.2~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=600724d4423f3df1ec8eebd5f1d6395eb91d207d;p=thirdparty%2FPython%2Fcpython.git [3.12] Fix typos in ElementTree documentation (GH-108848) (GH-114854) PI objects instead of comment objects. (cherry picked from commit de6f97cd3519c5d8528d8ca1bb00fce4e9969671) Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst index fe92400fb08d..bb6773c361a9 100644 --- a/Doc/library/xml.etree.elementtree.rst +++ b/Doc/library/xml.etree.elementtree.rst @@ -664,7 +664,7 @@ Functions given. Returns an element instance, representing a processing instruction. 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 they have been inserted into to the tree using one of the :class:`Element` methods. @@ -1302,8 +1302,8 @@ TreeBuilder Objects .. method:: pi(target, text) - Creates a comment with the given *target* name and *text*. If - ``insert_pis`` is true, this will also add it to the tree. + Creates a process instruction with the given *target* name and *text*. + If ``insert_pis`` is true, this will also add it to the tree. .. versionadded:: 3.8