diff options
Diffstat (limited to 'pyload/plugins/hoster/BasePlugin.py')
-rw-r--r-- | pyload/plugins/hoster/BasePlugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/hoster/BasePlugin.py b/pyload/plugins/hoster/BasePlugin.py index 7ea1dba17..2b8f7c848 100644 --- a/pyload/plugins/hoster/BasePlugin.py +++ b/pyload/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 |