[tor-commits] [bridgedb/develop] Import only API_SSL_SERVER from recaptcha.client.captcha in bridgedb.captcha.

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


commit 57e9fff0a54b0f4f0faa1ab40608eaf77cd16f3a
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Mar 4 19:00:24 2014 +0000

    Import only API_SSL_SERVER from recaptcha.client.captcha in bridgedb.captcha.
---
 lib/bridgedb/captcha.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/captcha.py b/lib/bridgedb/captcha.py
index a76303f..ef1317c 100644
--- a/lib/bridgedb/captcha.py
+++ b/lib/bridgedb/captcha.py
@@ -39,7 +39,7 @@ import os
 import urllib2
 
 from BeautifulSoup import BeautifulSoup
-from recaptcha.client import captcha as recaptcha
+from recaptcha.client.captcha import API_SSL_SERVER
 from zope.interface import Interface, Attribute, implements
 
 
@@ -92,7 +92,7 @@ class ReCaptcha(Captcha):
         """
         if (self.pubkey == '') or (self.privkey == ''):
             raise ReCaptchaKeyError
-        urlbase = recaptcha.API_SSL_SERVER
+        urlbase = API_SSL_SERVER
         form = "/noscript?k=%s" % self.pubkey
 
         # extract and store image from captcha





More information about the tor-commits mailing list