Skip to content

Commit f4eee16

Browse files
Rewrap the description of the parser argument of iterparse()
1 parent 04cefb4 commit f4eee16

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/library/xml.etree.elementtree.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,11 @@ Functions
620620
``"pi"``, ``"start-ns"`` and ``"end-ns"``
621621
(the "ns" events are used to get detailed namespace
622622
information). If *events* is omitted, only ``"end"`` events are reported.
623-
*parser* is an optional parser instance. If not given, the standard
624-
:class:`XMLParser` parser is used. *parser* must be an instance of
625-
:class:`XMLParser` or its subclass and can only use the default
626-
:class:`TreeBuilder` as a target. Returns an :term:`iterator` providing ``(event, elem)`` pairs;
623+
*parser* is an optional parser instance.
624+
If not given, the standard :class:`XMLParser` parser is used.
625+
*parser* must be an instance of :class:`XMLParser` or its subclass
626+
and can only use the default :class:`TreeBuilder` as a target.
627+
Returns an :term:`iterator` providing ``(event, elem)`` pairs;
627628
it has a ``root`` attribute that references the root element of the
628629
resulting XML tree once *source* is fully read.
629630
The iterator has the :meth:`!close` method that closes the internal

0 commit comments

Comments
 (0)