openmedialibrary_platform_d.../lib/python3.7/site-packages/lxml/html/ElementSoup.py

11 lines
319 B
Python
Raw Normal View History

2016-02-06 09:36:57 +00:00
__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()