Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 877b10a

Browse files
committed
Remove the htmllib and sgmllib modules as per PEP 3108.
1 parent 6b38daa commit 877b10a

15 files changed

Lines changed: 14 additions & 1969 deletions

Doc/library/formatter.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
21
:mod:`formatter` --- Generic output formatting
32
==============================================
43

54
.. module:: formatter
65
:synopsis: Generic output formatter and device interface.
76

87

9-
.. index:: single: HTMLParser (class in htmllib)
10-
118
This module supports two interface definitions, each with multiple
12-
implementations. The *formatter* interface is used by the :class:`HTMLParser`
13-
class of the :mod:`htmllib` module, and the *writer* interface is required by
14-
the formatter interface.
9+
implementations: The *formatter* interface, and the *writer* interface which is
10+
required by the formatter interface.
1511

1612
Formatter objects transform an abstract flow of formatting events into specific
1713
output events on writer objects. Formatters manage several stack structures to

Doc/library/html.entities.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77

88

99
This module defines three dictionaries, ``name2codepoint``, ``codepoint2name``,
10-
and ``entitydefs``. ``entitydefs`` is used by the :mod:`htmllib` module to
11-
provide the :attr:`entitydefs` member of the :class:`html.parser.HTMLParser`
12-
class. The definition provided here contains all the entities defined by XHTML
13-
1.0 that can be handled using simple textual substitution in the Latin-1
14-
character set (ISO-8859-1).
10+
and ``entitydefs``. ``entitydefs`` is used to provide the :attr:`entitydefs`
11+
member of the :class:`html.parser.HTMLParser` class. The definition provided
12+
here contains all the entities defined by XHTML 1.0 that can be handled using
13+
simple textual substitution in the Latin-1 character set (ISO-8859-1).
1514

1615

1716
.. data:: entitydefs

Doc/library/html.parser.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
This module defines a class :class:`HTMLParser` which serves as the basis for
1313
parsing text files formatted in HTML (HyperText Mark-up Language) and XHTML.
14-
Unlike the parser in :mod:`htmllib`, this parser is not based on the SGML parser
15-
in :mod:`sgmllib`.
16-
1714

1815
.. class:: HTMLParser()
1916

@@ -23,9 +20,8 @@ in :mod:`sgmllib`.
2320
begin and end. The :class:`HTMLParser` class is meant to be overridden by the
2421
user to provide a desired behavior.
2522

26-
Unlike the parser in :mod:`htmllib`, this parser does not check that end tags
27-
match start tags or call the end-tag handler for elements which are closed
28-
implicitly by closing an outer element.
23+
This parser does not check that end tags match start tags or call the end-tag
24+
handler for elements which are closed implicitly by closing an outer element.
2925

3026
An exception is defined as well:
3127

Doc/library/htmllib.rst

Lines changed: 0 additions & 147 deletions
This file was deleted.

Doc/library/markup.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ definition of the Python bindings for the DOM and SAX interfaces.
2323

2424
html.parser.rst
2525
html.entities.rst
26-
sgmllib.rst
27-
htmllib.rst
2826
pyexpat.rst
2927
xml.dom.rst
3028
xml.dom.minidom.rst

0 commit comments

Comments
 (0)