summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-10-28 11:20:08 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2011-10-28 11:20:08 (GMT)
commit87033526adba2f29319df133ec92a3cd23f4c704 (patch)
tree4bb030c4a276e1260925b9d7dc817a399f52b917
parentf9cc80d6018bfb5797c938afc7a17352489d82c2 (diff)
downloadcpython-87033526adba2f29319df133ec92a3cd23f4c704.zip
cpython-87033526adba2f29319df133ec92a3cd23f4c704.tar.gz
cpython-87033526adba2f29319df133ec92a3cd23f4c704.tar.bz2
Minor fixes to the HTMLParser doc.
-rw-r--r--Doc/library/htmlparser.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/htmlparser.rst b/Doc/library/htmlparser.rst
index 787ab4e..b75b61e 100644
--- a/Doc/library/htmlparser.rst
+++ b/Doc/library/htmlparser.rst
@@ -8,8 +8,8 @@
.. note::
The :mod:`HTMLParser` module has been renamed to :mod:`html.parser` in Python
- 3.0. The :term:`2to3` tool will automatically adapt imports when converting
- your sources to 3.0.
+ 3. The :term:`2to3` tool will automatically adapt imports when converting
+ your sources to Python 3.
.. versionadded:: 2.2
@@ -109,9 +109,9 @@ An exception is defined as well:
.. method:: HTMLParser.handle_startendtag(tag, attrs)
Similar to :meth:`handle_starttag`, but called when the parser encounters an
- XHTML-style empty tag (``<a .../>``). This method may be overridden by
+ XHTML-style empty tag (``<img ... />``). This method may be overridden by
subclasses which require this particular lexical information; the default
- implementation simple calls :meth:`handle_starttag` and :meth:`handle_endtag`.
+ implementation simply calls :meth:`handle_starttag` and :meth:`handle_endtag`.
.. method:: HTMLParser.handle_endtag(tag)