[Python-checkins] r63434 - in python/trunk/Doc/library: htmllib.rst htmlparser.rst
fred.drake
python-checkins at python.org
Sat May 17 23:23:03 CEST 2008
Author: fred.drake
Date: Sat May 17 23:23:02 2008
New Revision: 63434
Log:
document the renames for modules moved to the html package
(http://bugs.python.org/issue2882)
Modified:
python/trunk/Doc/library/htmllib.rst
python/trunk/Doc/library/htmlparser.rst
Modified: python/trunk/Doc/library/htmllib.rst
==============================================================================
--- python/trunk/Doc/library/htmllib.rst (original)
+++ python/trunk/Doc/library/htmllib.rst Sat May 17 23:23:02 2008
@@ -152,10 +152,18 @@
:mod:`html.entities` --- Definitions of HTML general entities
=============================================================
+.. module:: htmlentitydefs
+ :synopsis: Old name for the :mod:`html.entities` module.
+
.. module:: html.entities
:synopsis: Definitions of HTML general entities.
.. sectionauthor:: Fred L. Drake, Jr. <fdrake at acm.org>
+.. note::
+ The :mod:`htmlentitydefs` module has been renamed to
+ :mod:`html.entities` in Python 3.0. It is importable under both names
+ in Python 2.6 and the rest of the 2.x series.
+
This module defines three dictionaries, ``name2codepoint``, ``codepoint2name``,
and ``entitydefs``. ``entitydefs`` is used by the :mod:`htmllib` module to
Modified: python/trunk/Doc/library/htmlparser.rst
==============================================================================
--- python/trunk/Doc/library/htmlparser.rst (original)
+++ python/trunk/Doc/library/htmlparser.rst Sat May 17 23:23:02 2008
@@ -2,9 +2,17 @@
:mod:`html.parser` --- Simple HTML and XHTML parser
===================================================
+.. module:: HTMLParser
+ :synopsis: Old name for the :mod:`html.parser` module.
+
.. module:: html.parser
:synopsis: A simple parser that can handle HTML and XHTML.
+.. note::
+ The :mod:`HTMLParser` module has been renamed to
+ :mod:`html.parser` in Python 3.0. It is importable under both names
+ in Python 2.6 and the rest of the 2.x series.
+
.. versionadded:: 2.2
More information about the Python-checkins
mailing list