summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/TurbobitNet.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-11 11:58:46 +0200
commit0424017acbd34e14a33002e130c618c5dd6df222 (patch)
tree950e911cbf3d1ede76c01f63c18d49f3e4472645 /module/plugins/hoster/TurbobitNet.py
parentChange Solvmedia to Solvemedia (diff)
downloadpyload-0424017acbd34e14a33002e130c618c5dd6df222.tar.xz
Replace range with xrange
Merges vuolter/pyload@a50c8ff
Diffstat (limited to 'module/plugins/hoster/TurbobitNet.py')
-rw-r--r--module/plugins/hoster/TurbobitNet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py
index f33775f80..5bed39712 100644
--- a/module/plugins/hoster/TurbobitNet.py
+++ b/module/plugins/hoster/TurbobitNet.py
@@ -70,7 +70,7 @@ class TurbobitNet(SimpleHoster):
self.downloadFile()
def solveCaptcha(self):
- for i in range(5):
+ for _ in xrange(5):
found = re.search(self.LIMIT_WAIT_PATTERN, self.html)
if found:
wait_time = int(found.group(1))
@@ -135,7 +135,7 @@ class TurbobitNet(SimpleHoster):
found = re.search("(/\w+/timeout\.js\?\w+=)([^\"\'<>]+)", self.html)
url = "http://turbobit.net%s%s" % (found.groups() if found else (
- '/files/timeout.js?ver=', ''.join(random.choice('0123456789ABCDEF') for x in range(32))))
+ '/files/timeout.js?ver=', ''.join(random.choice('0123456789ABCDEF') for _ in xrange(32))))
fun = self.load(url)
self.setWait(65, False)