diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-10 09:47:47 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-10 09:47:47 -0500 |
commit | 0dcb2c0eca6c348718ff29a0747ca605316610a8 (patch) | |
tree | b32a00135d73bc9034f1270208f6cdbce2ca584b /beautifulsoup/element.py | |
parent | 3366ad67dc2dfdd508267efc87dfc851b612fb0d (diff) |
Fixed the ability to encode strings.
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r-- | beautifulsoup/element.py | 3 |
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 |