[tor-commits] [bridgedb/master] Fix captcha.Captcha.get()	implementation.
    isis at torproject.org 
    isis at torproject.org
       
    Fri May 16 18:52:53 UTC 2014
    
    
  
commit b7b65a6afcb8e85271ed05350fdba5542ac9cf99
Author: Isis Lovecruft <isis at 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):
    
    
More information about the tor-commits
mailing list