You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
319 B

4 years ago
  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()