summaryrefslogtreecommitdiffstats
path: root/pyload/cli
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-19 18:03:46 +0200
commite1c22fad3fffb485da400e4b34c094f201a2c72e (patch)
treed360610cdf65e2f1906d3cc9c891f6b80066859d /pyload/cli
parentPEP-8, Python Zen, refactor and reduce code (part 7 in master module/database) (diff)
downloadpyload-e1c22fad3fffb485da400e4b34c094f201a2c72e.tar.xz
range -> xrange
Diffstat (limited to 'pyload/cli')
-rw-r--r--pyload/cli/Cli.py2
-rw-r--r--pyload/cli/ManageFiles.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/pyload/cli/Cli.py b/pyload/cli/Cli.py
index a1f192bb3..cd3252220 100644
--- a/pyload/cli/Cli.py
+++ b/pyload/cli/Cli.py
@@ -214,7 +214,7 @@ class Cli(object):
# clear old output
if line < self.lastLowestLine:
- for i in range(line + 1, self.lastLowestLine + 1):
+ for i in xrange(line + 1, self.lastLowestLine + 1):
println(i, "")
self.lastLowestLine = line
diff --git a/pyload/cli/ManageFiles.py b/pyload/cli/ManageFiles.py
index c010895c5..2e7f725dd 100644
--- a/pyload/cli/ManageFiles.py
+++ b/pyload/cli/ManageFiles.py
@@ -113,7 +113,7 @@ class ManageFiles(Handler):
i += 1
except Exception:
pass
- for _i in range(5 - i):
+ for _i in xrange(5 - i):
println(line, "")
line += 1
else:
@@ -128,7 +128,7 @@ class ManageFiles(Handler):
i += 1
except Exception, e:
pass
- for _i in range(5 - i):
+ for _i in xrange(5 - i):
println(line, "")
line += 1
@@ -168,7 +168,7 @@ class ManageFiles(Handler):
inp = inp.strip()
if "-" in inp:
l, _, h = inp.partition("-")
- r = range(int(l), int(h) + 1)
+ r = xrange(int(l), int(h) + 1)
if package:
return [p.pid for p in self.cache if p.pid in r]