summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-21 08:05:17 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-21 08:05:17 -0500
commitab5cfcead94a0c99d0f325883960097ef223fca6 (patch)
treebe531463bd32fe82273ed97d4916ffcefd0e41fb /bs4/element.py
parente1b321db7331752a3aea8dd7070dd0db4c60c51d (diff)
parent60cb51632dce022d1a4aff18500d286e58e0bd5c (diff)
Merged from trunk.
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 926fb8f..653bb05 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -765,7 +765,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,