PEP8, various other tweaks

This commit is contained in:
Luke Rogers 2012-09-05 07:52:03 +12:00
parent 6c022dac1c
commit e12e7721da
11 changed files with 29 additions and 34 deletions

View file

@ -1,7 +1,4 @@
from util import hook
from util.web import isgd
from urllib import quote_plus
from util import hook, web, http
@hook.command('gfy')
@ -9,5 +6,5 @@ from urllib import quote_plus
def lmgtfy(inp, bot=None):
"lmgtfy [phrase] - Posts a google link for the specified phrase"
url = "http://lmgtfy.com/?q=%s" % quote_plus(inp)
return isgd(url, api_user, api_key)
url = "http://lmgtfy.com/?q=%s" % http.quote_plus(inp)
return web.isgd(url)