summaryrefslogtreecommitdiff
path: root/beautifulsoup/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 06:54:12 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 06:54:12 -0500
commit210f96bfd0d1cd074a3e0f0c7468bed2773168c4 (patch)
tree7af1987d5f957d160929d191a5e8ae7c53c1142a /beautifulsoup/element.py
parentf141f1c2c0c159057c03cd44b3c6b9e26731ac03 (diff)
Removed builder argument from _convertEntities.
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r--beautifulsoup/element.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py
index 0216255..618245f 100644
--- a/beautifulsoup/element.py
+++ b/beautifulsoup/element.py
@@ -389,7 +389,7 @@ class Tag(PageElement, Entities):
"""Represents a found HTML tag with its attributes and contents."""
- def _convertEntities(self, builder, match):
+ def _convertEntities(self, match):
"""Used in a call to re.sub to replace HTML, XML, and numeric
entities with the appropriate Unicode characters. If HTML
entities are being converted, any unrecognized entities are
@@ -432,7 +432,7 @@ class Tag(PageElement, Entities):
self.escapeUnrecognizedEntities = parser.escapeUnrecognizedEntities
# Convert any HTML, XML, or numeric entities in the attribute values.
- convert_one = lambda x: self._convertEntities(parser.builder, x)
+ convert_one = lambda x: self._convertEntities(x)
def convert(kval):
k, val = kval
if val is None: