From f8cf65d4271254dd89662cb6190adc5b426c6d2b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:44:03 +0200 Subject: 'from time' -> 'import time' and so on... (2) --- pyload/plugin/captcha/ReCaptcha.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyload/plugin/captcha') diff --git a/pyload/plugin/captcha/ReCaptcha.py b/pyload/plugin/captcha/ReCaptcha.py index dc431f2ea..37da91a58 100644 --- a/pyload/plugin/captcha/ReCaptcha.py +++ b/pyload/plugin/captcha/ReCaptcha.py @@ -1,12 +1,11 @@ # -*- coding: utf-8 -*- +import base64 import random import re import time import urlparse -from base64 import b64encode - from pyload.plugin.Captcha import Captcha @@ -176,7 +175,7 @@ class ReCaptcha(Captcha): get={'c':token3.group(1), 'k':key}, cookies=True, forceUser=True) - response = b64encode('{"response":"%s"}' % captcha_response) + response = base64.b64encode('{"response":"%s"}' % captcha_response) self.logDebug("Result: %s" % response) -- cgit v1.2.3