wg-backend-django/dell-env/lib/python3.11/site-packages/lxml/html/ElementSoup.py
2023-10-30 14:40:43 +07:00

11 lines
320 B
Python

__doc__ = """Legacy interface to the BeautifulSoup HTML parser.
"""
__all__ = ["parse", "convert_tree"]
from .soupparser import convert_tree, parse as _parse
def parse(file, beautifulsoup=None, makeelement=None):
root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
return root.getroot()