summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index 5462592..71cdb65 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -992,7 +992,7 @@ class Tag(PageElement):
attribute."""
return self.attrs.get(key, default)
- def string_attr(self, key, default=None):
+ def get_attribute_text(self, key, default=None):
"""The same as get(), but converts lists of values to strings."""
value = self.get(key, default)
if isinstance(value, list):