diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-19 18:03:46 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-19 18:03:46 +0200 |
commit | e1c22fad3fffb485da400e4b34c094f201a2c72e (patch) | |
tree | d360610cdf65e2f1906d3cc9c891f6b80066859d /pyload/manager/Thread.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff) | |
download | pyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz |
range -> xrange
Diffstat (limited to 'pyload/manager/Thread.py')
-rw-r--r-- | pyload/manager/Thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/manager/Thread.py b/pyload/manager/Thread.py index a8550e504..782cf7b2a 100644 --- a/pyload/manager/Thread.py +++ b/pyload/manager/Thread.py @@ -51,7 +51,7 @@ class ThreadManager(object): pycurl.global_init(pycurl.GLOBAL_DEFAULT) - for _i in range(0, self.core.config.get("download", "max_downloads")): + for _i in xrange(0, self.core.config.get("download", "max_downloads")): self.createThread() @@ -206,7 +206,7 @@ class ThreadManager(object): ("http://checkip.dyndns.org/", ".*Current IP Address: (\S+)</body>.*")] ip = "" - for _i in range(10): + for _i in xrange(10): try: sv = choice(services) ip = getURL(sv[0]) |