summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2013-08-25 22:30:39 (GMT)
committerEli Bendersky <eliben@gmail.com>2013-08-25 22:30:39 (GMT)
commitc020e7f8cb04ff81197501781e92a26fa4382135 (patch)
tree3393c3d740715ce3dd670076937e7ea95089592c
parent74eba65fb6dc1a10020a068d59b21fdb22dd743b (diff)
parentbf8ab77f940013e42f7b9af5b4fd2100238f389b (diff)
downloadcpython-c020e7f8cb04ff81197501781e92a26fa4382135.zip
cpython-c020e7f8cb04ff81197501781e92a26fa4382135.tar.gz
cpython-c020e7f8cb04ff81197501781e92a26fa4382135.tar.bz2
Merge doc fix from 3.3
-rw-r--r--Doc/library/xml.etree.elementtree.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index d24924e..8563971 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -983,8 +983,8 @@ XMLParser Objects
.. 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 @@ XMLParser Objects
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