ElementSoup.py 319 B

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