diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 08:41:38 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 08:41:38 -0500 |
commit | ec444785a35722778ad188a66fef483cc93d7bbb (patch) | |
tree | 041b3f3dbf0f069dbb83da09c52a5fab56df34b2 /beautifulsoup/builder/lxml_builder.py | |
parent | a16883da6445710fcf69cfcc1842fb6883495b1c (diff) |
Added an empty-element tag test.
Diffstat (limited to 'beautifulsoup/builder/lxml_builder.py')
-rw-r--r-- | beautifulsoup/builder/lxml_builder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/beautifulsoup/builder/lxml_builder.py b/beautifulsoup/builder/lxml_builder.py index 0cc9e51..e431a62 100644 --- a/beautifulsoup/builder/lxml_builder.py +++ b/beautifulsoup/builder/lxml_builder.py @@ -13,9 +13,9 @@ class LXMLTreeBuilderForXML(TreeBuilder): # will be instantiated with default arguments. return etree.XMLParser - def __init__(self, parser=None, self_closing_tags=None): - if self_closing_tags is not None: - self.self_closing_tags = set(self_closing_tags) + def __init__(self, parser=None, empty_element_tags=None): + if empty_element_tags is not None: + self.empty_element_tags = set(empty_element_tags) if parser is None: # Use the default parser. parser = self.default_parser |