summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BasePlugin.py
diff options
context:
space:
mode:
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