diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2010-12-29 11:52:00 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2010-12-29 11:52:00 -0500 |
commit | d18cebdeffafb4e4c9c6239da2b3ae94ae5a42e8 (patch) | |
tree | 38b50fd716b1279aa71dc5a8c510dfaa2fcbc645 /src/beautifulsoup/element.py | |
parent | c2cbc8580695d5efa7ab226ade55958632499bf1 (diff) |
Ported some tests from the old system to the new smoke test class.
Diffstat (limited to 'src/beautifulsoup/element.py')
-rw-r--r-- | src/beautifulsoup/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/beautifulsoup/element.py b/src/beautifulsoup/element.py index b5b8e84..7649b4c 100644 --- a/src/beautifulsoup/element.py +++ b/src/beautifulsoup/element.py @@ -383,10 +383,10 @@ class Tag(PageElement, Entities): entities are being converted, any unrecognized entities are escaped.""" x = match.group(1) - if builder.convertHTMLEntities and x in name2codepoint: + if builder.convert_html_entities and x in name2codepoint: return unichr(name2codepoint[x]) elif x in self.XML_ENTITIES_TO_SPECIAL_CHARS: - if builder.convertXMLEntities: + if builder.convert_xml_entities: return self.XML_ENTITIES_TO_SPECIAL_CHARS[x] else: return u'&%s;' % x |