From 703de09577f6d7cc79a4c69d799bf5b90a32d22f Mon Sep 17 00:00:00 2001 From: Maxim Kiselev Date: Sun, 20 Sep 2015 01:55:44 +0300 Subject: [PATCH] Update client.py fix py3k verify code --- captcha/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/captcha/client.py b/captcha/client.py index 64af48e0..c22be1e3 100644 --- a/captcha/client.py +++ b/captcha/client.py @@ -141,6 +141,8 @@ def submit(recaptcha_challenge_field, else: return_values = httpresp.read().splitlines() return_code = return_values[0] + if not PY2: + return_code = return_code.decode('utf-8') httpresp.close()