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

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



commit 670e3fc7dd7519e97b9fd6d22ee45f5acb910474
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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.



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