From 0909884d21621394c0e810c508ceb4a4743ab8b5 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Mon, 20 Feb 2012 10:01:21 -0500 Subject: Added code from 2.7's standard library so that the tests will run on Python 2.6. --- bs4/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bs4/element.py') diff --git a/bs4/element.py b/bs4/element.py index 513407c..997378a 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -750,7 +750,7 @@ class Tag(PageElement): # Turn the data structure into Unicode, then encode the # Unicode. u = self.decode(indent_level, encoding, formatter) - return u.encode(encoding, errors=errors) + return u.encode(encoding, errors) def decode(self, indent_level=None, eventual_encoding=DEFAULT_OUTPUT_ENCODING, -- cgit v1.2.3