From 4cbd40dffffe177b2cb438c5f3d9bf0d16932036 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 11 Apr 2014 11:58:46 +0200 Subject: Replace range with xrange Merges vuolter/pyload@a50c8ff (cherry picked from commit 0424017acbd34e14a33002e130c618c5dd6df222) Conflicts: module/plugins/PluginManager.py module/plugins/captcha/LinksaveIn.py --- pyload/plugins/addons/Captcha9kw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyload/plugins/addons/Captcha9kw.py') diff --git a/pyload/plugins/addons/Captcha9kw.py b/pyload/plugins/addons/Captcha9kw.py index 3a1b9fe8f..b2895a357 100755 --- a/pyload/plugins/addons/Captcha9kw.py +++ b/pyload/plugins/addons/Captcha9kw.py @@ -92,7 +92,7 @@ class Captcha9kw(Hook): if response.isdigit(): self.logInfo(_("New CaptchaID from upload: %s : %s") % (response, task.captchaFile)) - for i in range(1, 100, 1): + for _ in xrange(1, 100, 1): response2 = getURL(self.API_URL, get={"apikey": self.getConfig("passkey"), "id": response, "pyload": "1", "source": "pyload", "action": "usercaptchacorrectdata"}) -- cgit v1.2.3