summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2010-12-29 11:52:00 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2010-12-29 11:52:00 -0500
commitd18cebdeffafb4e4c9c6239da2b3ae94ae5a42e8 (patch)
tree38b50fd716b1279aa71dc5a8c510dfaa2fcbc645 /src/beautifulsoup/element.py
parentc2cbc8580695d5efa7ab226ade55958632499bf1 (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.py4
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