Search shim, and an encoding fix.

This commit is contained in:
Sean B. Palmer
2011-06-17 16:49:37 +01:00
parent 78ec273046
commit 12c8cd07f5
4 changed files with 17 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ c.commands = ['c']
c.example = '.c 5 + 3'
def py(phenny, input):
query = input.group(2)
query = input.group(2).encode('utf-8')
uri = 'http://tumbolia.appspot.com/py/'
answer = web.get(uri + web.urllib.quote(query))
if answer: