summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder/__init__.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 12:10:10 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 12:10:10 -0500
commit0dda99b15112df7225e647db9702fbd62dcc8ea8 (patch)
tree1127d44d52716738835c6ab2128fdb1561bc7cc2 /beautifulsoup/builder/__init__.py
parent66cbef12d959149746b3361f227f2a0328a31469 (diff)
parent945b719a28c229178e710b749d2af4d00a81bdba (diff)
Defer to html5lib's Unicode converter rather than using Unicode, Dammit. The lxml treebuilder still uses UD.
Diffstat (limited to 'beautifulsoup/builder/__init__.py')
-rw-r--r--beautifulsoup/builder/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py
index cf5e6c6..5bf5929 100644
--- a/beautifulsoup/builder/__init__.py
+++ b/beautifulsoup/builder/__init__.py
@@ -25,6 +25,10 @@ class TreeBuilder(Entities):
def feed(self, markup):
raise NotImplementedError()
+ def prepare_markup(self, markup, user_specified_encoding=None,
+ document_declared_encoding=None):
+ return markup, None, None
+
def test_fragment_to_document(self, fragment):
"""Wrap an HTML fragment to make it look like a document.