summaryrefslogtreecommitdiffstats
path: root/pyload/cli/ManageFiles.py
diff options
context:
space:
mode:
authorGravatar ardi69 <armin@diedering.de> 2015-04-21 06:51:24 +0200
committerGravatar ardi69 <armin@diedering.de> 2015-04-21 06:51:24 +0200
commit2f8433b6a10505d29a1b63ea8bbd9b0bf3f7d9f6 (patch)
treeb82a8b5fc0a309f69733b0a004284f4ef45833d8 /pyload/cli/ManageFiles.py
parentadded check of classname == filename (diff)
parentMerge branch 'pr/n10_ardi69' into 0.4.10 (diff)
downloadpyload-2f8433b6a10505d29a1b63ea8bbd9b0bf3f7d9f6.tar.xz
Merge pull request #4 from vuolter/0.4.10
vuolter HEAD
Diffstat (limited to 'pyload/cli/ManageFiles.py')
-rw-r--r--pyload/cli/ManageFiles.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyload/cli/ManageFiles.py b/pyload/cli/ManageFiles.py
index c010895c5..3833b2c48 100644
--- a/pyload/cli/ManageFiles.py
+++ b/pyload/cli/ManageFiles.py
@@ -15,9 +15,9 @@ class ManageFiles(Handler):
def init(self):
self.target = Destination.Queue
- self.pos = 0 # position in queue
- self.package = -1 # choosen package
- self.mode = "" # move/delete/restart
+ self.pos = 0 #: position in queue
+ self.package = -1 #: choosen package
+ self.mode = "" #: move/delete/restart
self.cache = None
self.links = None
@@ -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]