summaryrefslogtreecommitdiff
path: root/lxml_test.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-01-28 11:39:36 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-01-28 11:39:36 -0500
commit7bbefa1fcc9a6006953eb0a79049ece9f05985de (patch)
tree8fa1d24a0f6411b7455e76fd87b659049690077f /lxml_test.py
parent692fe5201d5dec15a3598578a6f403e67802de0d (diff)
Moved everything into the top-level directory and got rid of buildout.
Diffstat (limited to 'lxml_test.py')
-rw-r--r--lxml_test.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/lxml_test.py b/lxml_test.py
deleted file mode 100644
index 2e25c06..0000000
--- a/lxml_test.py
+++ /dev/null
@@ -1,13 +0,0 @@
-from BeautifulSoup import BeautifulStoneSoup, BeautifulSoup
-from lxml_builder import LXMLTreeBuilder
-from lxml import etree
-builder = LXMLTreeBuilder(parser_class=etree.XMLParser)
-soup = BeautifulStoneSoup("<foo>bar</foo>", builder=builder)
-print soup.prettify()
-
-soup = BeautifulSoup("<foo>bar</foo>", builder=builder)
-print soup.prettify()
-
-builder = LXMLTreeBuilder(parser_class=etree.HTMLParser, self_closing_tags=['br'])
-soup = BeautifulSoup("<html><head><title>test<body><h1>page<!--Comment--><script>foo<b>bar</script><br />title</h1>", builder=builder)
-print soup.prettify()