summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-06-01 04:13:08 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-06-01 04:13:08 (GMT)
commit52467b167e28108509804d82fc050216fce3dc05 (patch)
treec30923d29e542dcb4498ff2ded7cb8a932be6783 /Doc
parent7e0229e90d4161ea7f81f325ac883ecd85782f71 (diff)
downloadcpython-52467b167e28108509804d82fc050216fce3dc05.zip
cpython-52467b167e28108509804d82fc050216fce3dc05.tar.gz
cpython-52467b167e28108509804d82fc050216fce3dc05.tar.bz2
Issue #14007: make XMLParser a real subclassable type exported from _elementtree. +cleanups
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/xml.etree.elementtree.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/xml.etree.elementtree.rst b/Doc/library/xml.etree.elementtree.rst
index 13f98e4..51ff1ee 100644
--- a/Doc/library/xml.etree.elementtree.rst
+++ b/Doc/library/xml.etree.elementtree.rst
@@ -646,8 +646,8 @@ ElementTree Objects
Loads an external XML section into this element tree. *source* is a file
name or :term:`file object`. *parser* is an optional parser instance.
- If not given, the standard XMLParser parser is used. Returns the section
- root element.
+ If not given, the standard :class:`XMLParser` parser is used. Returns the
+ section root element.
.. method:: write(file, encoding="us-ascii", xml_declaration=None, method="xml")
@@ -767,9 +767,9 @@ XMLParser Objects
:class:`Element` structure builder for XML source data, based on the expat
parser. *html* are predefined HTML entities. This flag is not supported by
the current implementation. *target* is the target object. If omitted, the
- builder uses an instance of the standard TreeBuilder class. *encoding* [1]_
- is optional. If given, the value overrides the encoding specified in the
- XML file.
+ builder uses an instance of the standard :class:`TreeBuilder` class.
+ *encoding* [1]_ is optional. If given, the value overrides the encoding
+ specified in the XML file.
.. method:: close()