Merge branch 'py3k-backport' into testing

This commit is contained in:
Valentin Lorentz 2012-09-22 17:44:10 +00:00
commit 3a43229755
1 changed files with 1 additions and 1 deletions

View File

@ -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)