diff options
author | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:49:37 +0100 |
---|---|---|
committer | Sean B. Palmer <sbp@aldebaran.local> | 2011-06-17 16:49:37 +0100 |
commit | 12c8cd07f52883299ed628752b580462c31ce9f1 (patch) | |
tree | c79b62a988eb18221149fb47f873cadd1979c0fd /modules/calc.py | |
parent | 78ec2730460e8271e3a9d96056799785e6866f83 (diff) | |
download | bot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.gz bot-12c8cd07f52883299ed628752b580462c31ce9f1.tar.bz2 bot-12c8cd07f52883299ed628752b580462c31ce9f1.zip |
Search shim, and an encoding fix.
Diffstat (limited to 'modules/calc.py')
-rwxr-xr-x | modules/calc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/calc.py b/modules/calc.py index 88ac814..9d632ca 100755 --- a/modules/calc.py +++ b/modules/calc.py @@ -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: |