summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2012-07-03 09:53:04 -0400
committerLeonard Richardson <leonardr@segfault.org>2012-07-03 09:53:04 -0400
commit6e48bc2896908dbd8d57f950606f842539fcbfaf (patch)
treeb1ac29700b64340213c559e05b8fe59eb6e1a8a1 /bs4/element.py
parent695145237d6cf82f4d062975bde6738c42f81fb6 (diff)
get_text() now returns an empty Unicode string if there is no text, rather than an empty bytestring. [bug=1020387]
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 744a4e0..4a4d3ed 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -820,7 +820,7 @@ class Tag(PageElement):
for string in self._all_strings(True):
yield string
- def get_text(self, separator="", strip=False):
+ def get_text(self, separator=u"", strip=False):
"""
Get all child strings, concatenated using the given separator.
"""