diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 07:41:04 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 07:41:04 -0500 |
commit | 54f1fb0a0af88c408175cbcdf060d2d04040075d (patch) | |
tree | 889212d47e039c314c83033ab61403809c2d68f5 /beautifulsoup/builder/lxml_builder.py | |
parent | 3a2344e6c79cfa777e161d836c7e1fb1b7993ed7 (diff) |
Why is the test failing? Because I'm asserting the wrong thing.
Diffstat (limited to 'beautifulsoup/builder/lxml_builder.py')
-rw-r--r-- | beautifulsoup/builder/lxml_builder.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |