From 21c17b8248c153687c274ac62a6d357c500fef9f Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 1 Feb 2013 17:12:03 +0100 Subject: [PATCH] Google: Fix Python 3 compatibility of the @translate command. --- plugins/Google/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Google/plugin.py b/plugins/Google/plugin.py index 540e9a4e2..29bd09438 100644 --- a/plugins/Google/plugin.py +++ b/plugins/Google/plugin.py @@ -259,7 +259,7 @@ class Google(callbacks.PluginRegexp): '?client=t&hl=en&sl=%s&tl=%s&multires=1' '&otf=1&ssel=0&tsel=0&uptl=en&sc=1&text=' '%s' % (sourceLang, targetLang, text), - headers).read() + headers).read().decode('utf8') while ',,' in result: result = result.replace(',,', ',null,')