[Lxml-checkins] r52579 - in lxml/trunk: . src/lxml/html
scoder at codespeak.net
scoder at codespeak.net
Sun Mar 16 12:05:13 CET 2008
Author: scoder
Date: Sun Mar 16 12:05:13 2008
New Revision: 52579
Added:
lxml/trunk/src/lxml/html/ElementSoup.py
Modified:
lxml/trunk/ (props changed)
Log:
r3793 at delle: sbehnel | 2008-03-16 12:04:17 +0100
missing module
Added: lxml/trunk/src/lxml/html/ElementSoup.py
==============================================================================
--- (empty file)
+++ lxml/trunk/src/lxml/html/ElementSoup.py Sun Mar 16 12:05:13 2008
@@ -0,0 +1,10 @@
+__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()
More information about the lxml-checkins
mailing list