summaryrefslogtreecommitdiff
path: root/beautifulsoup/element.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-10 09:47:47 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-10 09:47:47 -0500
commit0dcb2c0eca6c348718ff29a0747ca605316610a8 (patch)
treeb32a00135d73bc9034f1270208f6cdbce2ca584b /beautifulsoup/element.py
parent3366ad67dc2dfdd508267efc87dfc851b612fb0d (diff)
Fixed the ability to encode strings.
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r--beautifulsoup/element.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py
index bd9bcbf..7ecd482 100644
--- a/beautifulsoup/element.py
+++ b/beautifulsoup/element.py
@@ -346,9 +346,6 @@ class NavigableString(unicode, PageElement):
else:
raise AttributeError, "'%s' object has no attribute '%s'" % (self.__class__.__name__, attr)
- def encode(self, encoding=DEFAULT_OUTPUT_ENCODING):
- return self.decode().encode(encoding)
-
def decodeGivenEventualEncoding(self, eventualEncoding):
return self