[Python-checkins] cpython (merge 3.3 -> default): Merge doc fix from 3.3
eli.bendersky
python-checkins at python.org
Mon Aug 26 00:30:48 CEST 2013
http://hg.python.org/cpython/rev/17ebc0dd28d3
changeset: 85404:17ebc0dd28d3
parent: 85402:232d42baa1bc
parent: 85403:25474968ac76
user: Eli Bendersky <eliben at gmail.com>
date: Sun Aug 25 15:30:39 2013 -0700
summary:
Merge doc fix from 3.3
files:
Doc/library/xml.etree.elementtree.rst | 16 +++++++-------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -983,8 +983,8 @@
.. method:: close()
Finishes feeding data to the parser. Returns the result of calling the
- :meth:`~TreeBuilder.close` method of the *target* passed during
- construction; by default, this is the toplevel document element.
+ ``close()`` method of the *target* passed during construction; by default,
+ this is the toplevel document element.
.. method:: doctype(name, pubid, system)
@@ -998,12 +998,12 @@
Feeds data to the parser. *data* is encoded data.
-:meth:`XMLParser.feed` calls *target*\'s :meth:`start` method
-for each opening tag, its :meth:`end` method for each closing tag,
-and data is processed by method :meth:`data`. :meth:`XMLParser.close`
-calls *target*\'s method :meth:`close`.
-:class:`XMLParser` can be used not only for building a tree structure.
-This is an example of counting the maximum depth of an XML file::
+ :meth:`XMLParser.feed` calls *target*\'s ``start()`` method
+ for each opening tag, its ``end()`` method for each closing tag,
+ and data is processed by method ``data()``. :meth:`XMLParser.close`
+ calls *target*\'s method ``close()``.
+ :class:`XMLParser` can be used not only for building a tree structure.
+ This is an example of counting the maximum depth of an XML file::
>>> from xml.etree.ElementTree import XMLParser
>>> class MaxDepth: # The target object of the parser
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list