]> granicus.if.org Git - python/commitdiff
Rename html.parser file, and split html.entities from htmllib
authorGeorg Brandl <georg@python.org>
Sat, 17 May 2008 21:54:03 +0000 (21:54 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 17 May 2008 21:54:03 +0000 (21:54 +0000)
to ease removal of the latter in Py3k.

Doc/library/html.entities.rst [new file with mode: 0644]
Doc/library/html.parser.rst [moved from Doc/library/htmlparser.rst with 96% similarity]
Doc/library/htmllib.rst
Doc/library/markup.rst

diff --git a/Doc/library/html.entities.rst b/Doc/library/html.entities.rst
new file mode 100644 (file)
index 0000000..601e181
--- /dev/null
@@ -0,0 +1,42 @@
+:mod:`html.entities` --- Definitions of HTML general entities
+=============================================================
+
+.. module:: htmlentitydefs
+   :synopsis: Old name for the 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
+provide the :attr:`entitydefs` member of the :class:`HTMLParser` class.  The
+definition provided here contains all the entities defined by XHTML 1.0  that
+can be handled using simple textual substitution in the Latin-1 character set
+(ISO-8859-1).
+
+
+.. data:: entitydefs
+
+   A dictionary mapping XHTML 1.0 entity definitions to their replacement text in
+   ISO Latin-1.
+
+
+.. data:: name2codepoint
+
+   A dictionary that maps HTML entity names to the Unicode codepoints.
+
+   .. versionadded:: 2.3
+
+
+.. data:: codepoint2name
+
+   A dictionary that maps Unicode codepoints to HTML entity names.
+
+   .. versionadded:: 2.3
similarity index 96%
rename from Doc/library/htmlparser.rst
rename to Doc/library/html.parser.rst
index a58769a6aaaed42859ded959b022ab32544653fa..5fa5a70a6b7f934b3d7a0cfc4224bd223383bb10 100644 (file)
@@ -1,17 +1,16 @@
-
 :mod:`html.parser` --- Simple HTML and XHTML parser
 ===================================================
 
 .. module:: HTMLParser
-   :synopsis: Old name for the :mod:`html.parser` module.
+   :synopsis: Old name for the 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.
+   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
index 8241c146b6d62f6925c2867c73884cfaf7b9e9cb..953a4e41a20fd8ee62bf59b738846f1671b2b3fd 100644 (file)
@@ -147,48 +147,3 @@ additional methods and instance variables for use within tag methods.
    call to :meth:`save_bgn`.  If the :attr:`nofill` flag is false, whitespace is
    collapsed to single spaces.  A call to this method without a preceding call to
    :meth:`save_bgn` will raise a :exc:`TypeError` exception.
-
-
-: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
-provide the :attr:`entitydefs` member of the :class:`HTMLParser` class.  The
-definition provided here contains all the entities defined by XHTML 1.0  that
-can be handled using simple textual substitution in the Latin-1 character set
-(ISO-8859-1).
-
-
-.. data:: entitydefs
-
-   A dictionary mapping XHTML 1.0 entity definitions to their replacement text in
-   ISO Latin-1.
-
-
-.. data:: name2codepoint
-
-   A dictionary that maps HTML entity names to the Unicode codepoints.
-
-   .. versionadded:: 2.3
-
-
-.. data:: codepoint2name
-
-   A dictionary that maps Unicode codepoints to HTML entity names.
-
-   .. versionadded:: 2.3
-
index dd0dd8f08fc11b7b4785c744585b98ac34bf9532..e08f9531c4a40c27c7d65ac45d4fb65c4e46e3da 100644 (file)
@@ -23,7 +23,8 @@ definition of the Python bindings for the DOM and SAX interfaces.
 
 .. toctree::
 
-   htmlparser.rst
+   html.parser.rst
+   html.entities.rst
    sgmllib.rst
    htmllib.rst
    pyexpat.rst