[bridgedb/master] Fix captcha.Captcha.get() implementation.

commit b7b65a6afcb8e85271ed05350fdba5542ac9cf99 Author: Isis Lovecruft <isis@torproject.org> Date: Wed May 14 21:13:12 2014 +0000 Fix captcha.Captcha.get() implementation. It's not supposed to return anything. It's only supposed to set the Captcha.image and Captcha.challenge attributes. --- lib/bridgedb/captcha.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/bridgedb/captcha.py b/lib/bridgedb/captcha.py index f5674c4..ca2575c 100644 --- a/lib/bridgedb/captcha.py +++ b/lib/bridgedb/captcha.py @@ -114,7 +114,13 @@ class Captcha(object): self.secretKey = secretKey def get(self): - return self.image + """Retrieve a new CAPTCHA image and its associated challenge string. + + The image and challenge will be stored as :ivar:`image` and + :ivar:`challenge, respectively. + """ + self.image = None + self.challenge = None class ReCaptcha(Captcha):
participants (1)
-
isis@torproject.org