]> granicus.if.org Git - python/commitdiff
document the renames for modules moved to the html package
authorFred Drake <fdrake@acm.org>
Sat, 17 May 2008 21:23:02 +0000 (21:23 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 17 May 2008 21:23:02 +0000 (21:23 +0000)
(http://bugs.python.org/issue2882)

Doc/library/htmllib.rst
Doc/library/htmlparser.rst

index ffaaaece6da9b2ad23d21975cc902ae0cf11c348..8241c146b6d62f6925c2867c73884cfaf7b9e9cb 100644 (file)
@@ -152,10 +152,18 @@ additional methods and instance variables for use within tag methods.
 :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@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
index ee3e1f27b0a5fd2483a4c1860402151da2767a63..a58769a6aaaed42859ded959b022ab32544653fa 100644 (file)
@@ -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