From d18cebdeffafb4e4c9c6239da2b3ae94ae5a42e8 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Wed, 29 Dec 2010 11:52:00 -0500 Subject: Ported some tests from the old system to the new smoke test class. --- src/beautifulsoup/element.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/beautifulsoup/element.py') 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 -- cgit v1.2.3