File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- from __future__ import absolute_import , division , unicode_literals
2-
31"""
42HTML parsing library based on the WHATWG "HTML5"
53specification. The parser is designed to be compatible with existing
1210f = open("my_document.html")
1311tree = html5lib.parse(f)
1412"""
13+
14+ from __future__ import absolute_import , division , unicode_literals
15+
1516__version__ = "0.95-dev"
1617from .html5parser import HTMLParser , parse , parseFragment
1718from .treebuilders import getTreeBuilder
Original file line number Diff line number Diff line change 1- from __future__ import absolute_import , division , unicode_literals
2-
31"""A collection of modules for building different kinds of tree from
42HTML documents.
53
3230the various methods.
3331"""
3432
33+ from __future__ import absolute_import , division , unicode_literals
34+
3535treeBuilderCache = {}
3636
3737import sys
Original file line number Diff line number Diff line change 1- from __future__ import absolute_import , division , unicode_literals
2-
31"""Module for supporting the lxml.etree library. The idea here is to use as much
42of the native library as possible, without using fragile hacks like custom element
53names that break between releases. The downside of this is that we cannot represent
119When any of these things occur, we emit a DataLossWarning
1210"""
1311
12+ from __future__ import absolute_import , division , unicode_literals
13+
1414import warnings
1515import re
1616import sys
Original file line number Diff line number Diff line change 1- from __future__ import absolute_import , division , unicode_literals
2-
31"""A collection of modules for iterating through different kinds of
42tree, generating tokens identical to those produced by the tokenizer
53module.
108returning an iterator generating tokens.
119"""
1210
11+ from __future__ import absolute_import , division , unicode_literals
12+
1313import sys
1414
1515treeWalkerCache = {}
You can’t perform that action at this time.
0 commit comments