summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/UploadedTo.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-04-11 11:58:46 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-21 17:18:12 +0200
commit4cbd40dffffe177b2cb438c5f3d9bf0d16932036 (patch)
tree346e094d181e4218d957d88507eac494d64c19ec /pyload/plugins/hoster/UploadedTo.py
parentChange Solvmedia to Solvemedia (diff)
downloadpyload-4cbd40dffffe177b2cb438c5f3d9bf0d16932036.tar.xz
Replace range with xrange
Merges vuolter/pyload@a50c8ff (cherry picked from commit 0424017acbd34e14a33002e130c618c5dd6df222) Conflicts: module/plugins/PluginManager.py module/plugins/captcha/LinksaveIn.py
Diffstat (limited to 'pyload/plugins/hoster/UploadedTo.py')
-rw-r--r--pyload/plugins/hoster/UploadedTo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/hoster/UploadedTo.py b/pyload/plugins/hoster/UploadedTo.py
index 56d8b1628..5b53b0aa5 100644
--- a/pyload/plugins/hoster/UploadedTo.py
+++ b/pyload/plugins/hoster/UploadedTo.py
@@ -33,7 +33,7 @@ def getAPIData(urls):
post["id_%s" % i] = id
idMap[id] = url
- for i in xrange(5):
+ for _ in xrange(5):
api = unicode(getURL("http://uploaded.net/api/filemultiple", post=post, decode=False), 'iso-8859-1')
if api != "can't find request":
break
@@ -189,7 +189,7 @@ class UploadedTo(Hoster):
url = "http://uploaded.net/io/ticket/captcha/%s" % self.fileID
downloadURL = ""
- for i in range(5):
+ for _ in xrange(5):
re_captcha = ReCaptcha(self)
challenge, result = re_captcha.challenge(challengeId.group(1))
options = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": result}