From f3e5223f3f4a08c39fe85ad3121fba7b83ca1b18 Mon Sep 17 00:00:00 2001 From: Daniel Folkinshteyn Date: Mon, 21 Nov 2011 15:14:34 -0500 Subject: [PATCH] Undo the web title fix because it appears it broke more than it fixed. --- plugins/Web/plugin.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index caba230ef..bbfbed992 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -90,10 +90,6 @@ class Web(callbacks.PluginRegexp): try: size = conf.supybot.protocols.http.peekSize() text = utils.web.getUrl(url, size=size) - try: - text = text.decode('utf8') - except UnicodeDecodeError: - text = text.decode('latin1') except utils.web.Error, e: self.log.info('Couldn\'t snarf title of %u: %s.', url, e) return @@ -174,10 +170,6 @@ class Web(callbacks.PluginRegexp): """ size = conf.supybot.protocols.http.peekSize() text = utils.web.getUrl(url, size=size) - try: - text = text.decode('utf8') - except UnicodeDecodeError: - text = text.decode('latin1') parser = Title() try: parser.feed(text)