PHP 8.0.30
Preview: __init__.py Size: 650 B
//opt/alt/python37/lib/python3.7/site-packages/html5lib/treeadapters/__init__.py

"""Tree adapters let you convert from one tree structure to another

Example:

.. code-block:: python

   import html5lib
   from html5lib.treeadapters import genshi

   doc = '<html><body>Hi!</body></html>'
   treebuilder = html5lib.getTreeBuilder('etree')
   parser = html5lib.HTMLParser(tree=treebuilder)
   tree = parser.parse(doc)
   TreeWalker = html5lib.getTreeWalker('etree')

   genshi_tree = genshi.to_genshi(TreeWalker(tree))

"""
from __future__ import absolute_import, division, unicode_literals

from . import sax

__all__ = ["sax"]

try:
    from . import genshi  # noqa
except ImportError:
    pass
else:
    __all__.append("genshi")

Directory Contents

Dirs: 1 × Files: 3

Name Size Perms Modified Actions
- drwxr-xr-x 2021-10-11 07:56:03
Edit Download
1.67 KB lrw-r--r-- 2017-12-07 12:25:26
Edit Download
1.73 KB lrw-r--r-- 2017-12-07 12:25:26
Edit Download
650 B lrw-r--r-- 2017-12-07 12:25:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).