Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit964d0e1

Browse files
committed
Clean up html5lib module documentation
Right now the docs have entries for re-exports likehtml5lib.__init__.HTMLParser, including full class documentation. Thisis redundant with the docs for html5lib.html5parser.HTMLParser, whichis a public name anyway, so I think that it is best to be explicit thatthis is a re-export.
1 parent323d736 commit964d0e1

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

‎doc/html5lib.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ html5lib Package
44
:mod:`html5lib` Package
55
-----------------------
66

7-
..automodule::html5lib.__init__
8-
:members:
9-
:undoc-members:
10-
:show-inheritance:
7+
..automodule::html5lib
8+
:members: __version__
119

1210
:mod:`constants` Module
1311
-----------------------

‎html5lib/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
import html5lib
1010
with open("my_document.html") as f:
1111
tree = html5lib.parse(f)
12+
13+
For convenience, this module re-exports the following names:
14+
15+
* :func:`~.html5parser.parse`, :func:`~.html5parser.parseFragment`, and :class:`~.html5parser.HTMLParser`
16+
* :func:`~.treebuilders.getTreeBuilder`
17+
* :func:`~.treewalkers.getTreeWalker`
18+
* :func:`~.serializer.serialize`
1219
"""
1320

1421
from __future__importabsolute_import,division,unicode_literals

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp