[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [bridgedb/develop] Fix docstring for HTTPServer.GimpCaptchaProtectedResource.checkSolution().



commit bd4603edfa0255c063de7c228df699a9fffb3d2c
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed May 14 20:06:02 2014 +0000

    Fix docstring for HTTPServer.GimpCaptchaProtectedResource.checkSolution().
    
    It looks like the docstring was aoriginally copied from
    HTTPServer.ReCaptchaProtectedResource.checkSolution(), as it says, "The
    client's IP address is not sent to the ReCaptcha server..." and never
    rewritten.
---
 lib/bridgedb/HTTPServer.py |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 779e270..491e527 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -302,11 +302,7 @@ class GimpCaptchaProtectedResource(CaptchaProtectedResource):
         self.captchaDir = captchaDir
 
     def checkSolution(self, request):
-        """Process a solved CAPTCHA by sending rehashing the solution together with
-        the client's IP address, and checking that the result matches the challenge.
-
-        The client's IP address is not sent to the ReCaptcha server; instead,
-        a completely random IP is generated and sent instead.
+        """Process a solved CAPTCHA via :meth:`bridgedb.captcha.GimpCaptcha.check`.
 
         :type request: :api:`twisted.web.http.Request`
         :param request: A ``Request`` object, including POST arguments which



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits