summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2017-05-06 14:43:41 -0400
committerLeonard Richardson <leonardr@segfault.org>2017-05-06 14:43:41 -0400
commit9f811070c46bfca9868b0365b8c209bd2ca17924 (patch)
treef2235982c223a8ea2c472f0e5e23127c968513c7 /bs4/element.py
parent13ec3c3f3010820be225094cc06862cc4b3b2944 (diff)
Renamed convenience method to get_attribute_text.
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):