• File: __init__.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib/python3.7/site-packages/html5lib/__pycache__/__init__.cpython-37.pyc
  • Date Modified: 07/08/2021 11:01 AM
  • File size: 1.23 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

*K)Zy@shdZddlmZmZmZddlmZmZmZddl	m
Z
ddlmZddl
mZdd	d
ddd
gZdZdS)a
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::

    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`
)absolute_importdivisionunicode_literals)
HTMLParserparse
parseFragment)getTreeBuilder)
getTreeWalker)	serializerrrr	r
rz1.0.1N)__doc__Z
__future__rrrZhtml5parserrrrZtreebuildersr	Ztreewalkersr
Z
serializerr__all____version__rrB/opt/alt/python37/lib/python3.7/site-packages/html5lib/__init__.py<module>s