mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Merge branch 'py3k-backport' into testing
This commit is contained in:
commit
7e0d868db1
@ -29,6 +29,7 @@
|
||||
###
|
||||
|
||||
import re
|
||||
import sys
|
||||
import cgi
|
||||
import time
|
||||
import socket
|
||||
@ -130,7 +131,9 @@ class Google(callbacks.PluginRegexp):
|
||||
for result in data:
|
||||
title = utils.web.htmlToText(result['titleNoFormatting']\
|
||||
.encode('utf-8'))
|
||||
url = result['unescapedUrl'].encode('utf-8')
|
||||
url = result['unescapedUrl']
|
||||
if sys.version_info[0] < 3:
|
||||
url = url.encode('utf-8')
|
||||
if title:
|
||||
if bold:
|
||||
title = ircutils.bold(title)
|
||||
|
Loading…
Reference in New Issue
Block a user