openmedialibrary_platform/Darwin/lib/python3.4/site-packages/lxml/html/ElementSoup.py
2014-09-30 21:25:01 +02:00

10 lines
319 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()