mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
Google: Fix Python 3 compatibility of the @translate command.
This commit is contained in:
parent
e45bce65e5
commit
21c17b8248
@ -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,')
|
||||
|
Loading…
Reference in New Issue
Block a user