summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-05-19 16:09:24 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-05-19 16:09:24 (GMT)
commitfb625448f83036b24b3191b8c2a062362bf8ad26 (patch)
tree237e2fb1f17dac2abb3b0e810ee54ee6cb7a3b90
parent3a4fbd8241f9a14cb8ed3ab1369bdcf8998d5d22 (diff)
downloadcpython-fb625448f83036b24b3191b8c2a062362bf8ad26.zip
cpython-fb625448f83036b24b3191b8c2a062362bf8ad26.tar.gz
cpython-fb625448f83036b24b3191b8c2a062362bf8ad26.tar.bz2
Clarify docs too: events can be any sequence (not that the C code supports it)
-rw-r--r--Doc/library/xml.etree.elementtree.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index 1fae0fe..d0bfed0 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -411,7 +411,7 @@ Functions
Parses an XML section into an element tree incrementally, and reports what's
going on to the user. *source* is a filename or :term:`file object`
- containing XML data. *events* is a list of events to report back. The
+ containing XML data. *events* is a sequence of events to report back. The
supported events are the strings ``"start"``, ``"end"``, ``"start-ns"``
and ``"end-ns"`` (the "ns" events are used to get detailed namespace
information). If *events* is omitted, only ``"end"`` events are reported.
@@ -875,8 +875,8 @@ IncrementalParser Objects
.. class:: IncrementalParser(events=None, parser=None)
An incremental, event-driven parser suitable for non-blocking applications.
- *events* is a list of events to report back. The supported events are the
- strings ``"start"``, ``"end"``, ``"start-ns"`` and ``"end-ns"`` (the "ns"
+ *events* is a sequence of events to report back. The supported events are
+ the strings ``"start"``, ``"end"``, ``"start-ns"`` and ``"end-ns"`` (the "ns"
events are used to get detailed namespace information). If *events* is
omitted, only ``"end"`` events are reported. *parser* is an optional
parser instance. If not given, the standard :class:`XMLParser` parser is