From 4cbca8dd1a2083fe7a8940a7edb815f6b52ca956 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Fri, 19 Dec 2014 17:55:56 -0600 Subject: [PATCH] Fix for nested comments --> with BS3. --- fanficdownloader/BeautifulSoup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fanficdownloader/BeautifulSoup.py b/fanficdownloader/BeautifulSoup.py index 6913c201..8afb6bff 100644 --- a/fanficdownloader/BeautifulSoup.py +++ b/fanficdownloader/BeautifulSoup.py @@ -682,7 +682,7 @@ class Tag(PageElement): return self.__str__(encoding) def __unicode__(self): - return self.__str__(None) + return str(self).decode(DEFAULT_OUTPUT_ENCODING) BARE_AMPERSAND_OR_BRACKET = re.compile("([<>]|" + "&(?!#\d+;|#x[0-9a-fA-F]+;|\w+;)"