File tree 4 files changed +9
-8
lines changed
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
-
3
1
"""
4
2
HTML parsing library based on the WHATWG "HTML5"
5
3
specification. The parser is designed to be compatible with existing
12
10
f = open("my_document.html")
13
11
tree = html5lib.parse(f)
14
12
"""
13
+
14
+ from __future__ import absolute_import , division , unicode_literals
15
+
15
16
__version__ = "0.95-dev"
16
17
from .html5parser import HTMLParser , parse , parseFragment
17
18
from .treebuilders import getTreeBuilder
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import , division , unicode_literals
2
-
3
1
"""A collection of modules for building different kinds of tree from
4
2
HTML documents.
5
3
32
30
the various methods.
33
31
"""
34
32
33
+ from __future__ import absolute_import , division , unicode_literals
34
+
35
35
treeBuilderCache = {}
36
36
37
37
import sys
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import , division , unicode_literals
2
-
3
1
"""Module for supporting the lxml.etree library. The idea here is to use as much
4
2
of the native library as possible, without using fragile hacks like custom element
5
3
names that break between releases. The downside of this is that we cannot represent
11
9
When any of these things occur, we emit a DataLossWarning
12
10
"""
13
11
12
+ from __future__ import absolute_import , division , unicode_literals
13
+
14
14
import warnings
15
15
import re
16
16
import sys
Original file line number Diff line number Diff line change 1
- from __future__ import absolute_import , division , unicode_literals
2
-
3
1
"""A collection of modules for iterating through different kinds of
4
2
tree, generating tokens identical to those produced by the tokenizer
5
3
module.
10
8
returning an iterator generating tokens.
11
9
"""
12
10
11
+ from __future__ import absolute_import , division , unicode_literals
12
+
13
13
import sys
14
14
15
15
treeWalkerCache = {}
You can’t perform that action at this time.
0 commit comments