summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-20 10:01:21 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-20 10:01:21 -0500
commit0909884d21621394c0e810c508ceb4a4743ab8b5 (patch)
tree91993561e21eb2c26bfd06f1a30192b79d88a676 /bs4/element.py
parent6c25290f92453294397049661f5edc36af562082 (diff)
Added code from 2.7's standard library so that the tests will run on Python 2.6.
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 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,