From ad3bf1302fa77d8419292b69e44db1f407ec3ea2 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 22 Sep 2012 17:43:59 +0000 Subject: [PATCH] Web: Fix compatibility with Python <= 2.6. --- plugins/Web/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index d5262f3b6..b15a18f0e 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -107,7 +107,7 @@ class Web(callbacks.PluginRegexp): domain = utils.web.getDomain(url) title = utils.web.htmlToText(parser.title.strip()) if sys.version_info[0] < 3: - title = title.encode('utf8', errors='replace') + title = title.encode('utf8', 'replace') s = format(_('Title: %s (at %s)'), title, domain) irc.reply(s, prefixNick=False) titleSnarfer = urlSnarfer(titleSnarfer)