From 54f1fb0a0af88c408175cbcdf060d2d04040075d Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 20 Feb 2011 07:41:04 -0500 Subject: Why is the test failing? Because I'm asserting the wrong thing. --- beautifulsoup/builder/lxml_builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'beautifulsoup/builder/lxml_builder.py') diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/lxml_builder.py index 72e5913..5e053b1 100644 --- a/beautifulsoup/builder/lxml_builder.py +++ b/beautifulsoup/builder/lxml_builder.py @@ -16,7 +16,9 @@ class LXMLTreeBuilderForXML(TreeBuilder): # will be instantiated with default arguments. return etree.XMLParser - def __init__(self, parser=None): + def __init__(self, parser=None, self_closing_tags=None): + if self_closing_tags is not None: + self.self_closing_tags = set(self_closing_tags) if parser is None: # Use the default parser. parser = self.default_parser -- cgit v1.2.3