diff options
author | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2018-12-11 10:01:23 +0000 |
commit | 68df54d6629ec019142eb149dd037774f2d11e7c (patch) | |
tree | 345bc22d46b4e01a4ba8303b94278952a4ed2b9e /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py |
First commit
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py')
-rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py new file mode 100644 index 0000000..0b54002 --- /dev/null +++ b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/html5lib/__init__.py | |||
@@ -0,0 +1,35 @@ | |||
1 | """ | ||
2 | HTML parsing library based on the `WHATWG HTML specification | ||
3 | <https://whatwg.org/html>`_. The parser is designed to be compatible with | ||
4 | existing HTML found in the wild and implements well-defined error recovery that | ||
5 | is largely compatible with modern desktop web browsers. | ||
6 | |||
7 | Example usage:: | ||
8 | |||
9 | from pip._vendor import html5lib | ||
10 | with open("my_document.html", "rb") as f: | ||
11 | tree = html5lib.parse(f) | ||
12 | |||
13 | For convenience, this module re-exports the following names: | ||
14 | |||
15 | * :func:`~.html5parser.parse` | ||
16 | * :func:`~.html5parser.parseFragment` | ||
17 | * :class:`~.html5parser.HTMLParser` | ||
18 | * :func:`~.treebuilders.getTreeBuilder` | ||
19 | * :func:`~.treewalkers.getTreeWalker` | ||
20 | * :func:`~.serializer.serialize` | ||
21 | """ | ||
22 | |||
23 | from __future__ import absolute_import, division, unicode_literals | ||
24 | |||
25 | from .html5parser import HTMLParser, parse, parseFragment | ||
26 | from .treebuilders import getTreeBuilder | ||
27 | from .treewalkers import getTreeWalker | ||
28 | from .serializer import serialize | ||
29 | |||
30 | __all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder", | ||
31 | "getTreeWalker", "serialize"] | ||
32 | |||
33 | # this has to be at the top level, see how setup.py parses this | ||
34 | #: Distribution version number. | ||
35 | __version__ = "1.0.1" | ||