[bridgedb/develop] Pep8; change `c` → `capt` in ReCaptchaProtectedResource.getCaptchaImage().

isis at torproject.org isis at torproject.org
Sun Mar 16 16:38:45 UTC 2014


commit 670e3fc7dd7519e97b9fd6d22ee45f5acb910474
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Mar 12 00:33:52 2014 +0000

    Pep8; change `c` → `capt` in ReCaptchaProtectedResource.getCaptchaImage().
---
 lib/bridgedb/HTTPServer.py |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 228f350..51c1351 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -375,17 +375,17 @@ class ReCaptchaProtectedResource(CaptchaProtectedResource):
             - ``image`` is a string holding a binary, JPEG-encoded image.
             - ``challenge`` is a unique string associated with the request.
         """
-        c = captcha.ReCaptcha(self.recaptchaPubKey, self.recaptchaPrivKey)
+        capt = captcha.ReCaptcha(self.recaptchaPubKey, self.recaptchaPrivKey)
 
         try:
-            c.get()
+            capt.get()
         except Exception as error:
             logging.fatal("Connection to Recaptcha server failed: %s" % error)
 
-        if c.image is None:
+        if capt.image is None:
             logging.warn("No CAPTCHA image received from ReCaptcha server!")
 
-        return (c.image, c.challenge)
+        return (capt.image, capt.challenge)
 
     def getRemoteIP(self):
         """Mask the client's real IP address with a faked one.





More information about the tor-commits mailing list