summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BasePlugin.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/BasePlugin.py
parentChange Solvmedia to Solvemedia (diff)
downloadpyload-0424017acbd34e14a33002e130c618c5dd6df222.tar.xz
Replace range with xrange
Merges vuolter/pyload@a50c8ff
Diffstat (limited to 'module/plugins/hoster/BasePlugin.py')
-rw-r--r--module/plugins/hoster/BasePlugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py
index 3a735bcda..62e800f49 100644
--- a/module/plugins/hoster/BasePlugin.py
+++ b/module/plugins/hoster/BasePlugin.py
@@ -38,7 +38,7 @@ class BasePlugin(Hoster):
# self.decryptCaptcha("http://localhost:9000/captcha")
#
# if pyfile.url == "79":
- # self.core.api.addPackage("test", [str(i) for i in range(80)], 1)
+ # self.core.api.addPackage("test", [str(i) for i in xrange(80)], 1)
#
# return
if pyfile.url.startswith("http"):
@@ -74,7 +74,7 @@ class BasePlugin(Hoster):
def downloadFile(self, pyfile):
url = pyfile.url
- for i in range(5):
+ for _ in xrange(5):
header = self.load(url, just_header=True)
# self.load does not raise a BadHeader on 404 responses, do it here