summaryrefslogtreecommitdiff
path: root/bs4/builder/_html5lib.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2013-05-31 09:17:11 -0400
committerLeonard Richardson <leonardr@segfault.org>2013-05-31 09:17:11 -0400
commit19f05a586c79b86be8ebe06a3728ab9a94162bee (patch)
tree295326e49419a40a8942dc3b0552e51f97e18abb /bs4/builder/_html5lib.py
parent342da7818966498e1fc2100c0b920cbc242c9831 (diff)
Create a new lxml parser object for every new parsing strategy.
Diffstat (limited to 'bs4/builder/_html5lib.py')
-rw-r--r--bs4/builder/_html5lib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py
index e439ac8..3bbc9a9 100644
--- a/bs4/builder/_html5lib.py
+++ b/bs4/builder/_html5lib.py
@@ -27,7 +27,7 @@ class HTML5TreeBuilder(HTMLTreeBuilder):
def prepare_markup(self, markup, user_specified_encoding):
# Store the user-specified encoding for use later on.
self.user_specified_encoding = user_specified_encoding
- return markup, None, None, False
+ yield (markup, None, None, False)
# These methods are defined by Beautiful Soup.
def feed(self, markup):