X7ROOT File Manager
Current Path:
/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/html5lib
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
pip
/
_vendor
/
html5lib
/
??
..
??
__init__.py
(1.13 KB)
??
__init__.pyc
(1.49 KB)
??
_ihatexml.py
(16.34 KB)
??
_ihatexml.pyc
(16.59 KB)
??
_inputstream.py
(31.59 KB)
??
_inputstream.pyc
(31.31 KB)
??
_tokenizer.py
(75.23 KB)
??
_tokenizer.pyc
(58.43 KB)
??
_trie
??
_utils.py
(4.82 KB)
??
_utils.pyc
(7.37 KB)
??
constants.py
(81.51 KB)
??
constants.pyc
(82 KB)
??
filters
??
html5parser.py
(114.44 KB)
??
html5parser.pyc
(141.1 KB)
??
serializer.py
(15.39 KB)
??
serializer.pyc
(13.91 KB)
??
treeadapters
??
treebuilders
??
treewalkers
Editing: __init__.py
""" HTML parsing library based on the `WHATWG HTML specification <https://whatwg.org/html>`_. The parser is designed to be compatible with existing HTML found in the wild and implements well-defined error recovery that is largely compatible with modern desktop web browsers. Example usage:: from pip._vendor import html5lib with open("my_document.html", "rb") as f: tree = html5lib.parse(f) For convenience, this module re-exports the following names: * :func:`~.html5parser.parse` * :func:`~.html5parser.parseFragment` * :class:`~.html5parser.HTMLParser` * :func:`~.treebuilders.getTreeBuilder` * :func:`~.treewalkers.getTreeWalker` * :func:`~.serializer.serialize` """ from __future__ import absolute_import, division, unicode_literals from .html5parser import HTMLParser, parse, parseFragment from .treebuilders import getTreeBuilder from .treewalkers import getTreeWalker from .serializer import serialize __all__ = ["HTMLParser", "parse", "parseFragment", "getTreeBuilder", "getTreeWalker", "serialize"] # this has to be at the top level, see how setup.py parses this #: Distribution version number. __version__ = "1.1"
Upload File
Create Folder