summaryrefslogtreecommitdiffstats
path: root/pyload/cli
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 22:56:34 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:02:08 +0200
commit892b7cbd4981b764bed30b2ccc5ca73d791c39f2 (patch)
tree1f5f142ad7e21de9e88f0c15957bbc7e03a9d1ff /pyload/cli
parentSpare code cosmetics (8) (diff)
downloadpyload-892b7cbd4981b764bed30b2ccc5ca73d791c39f2.tar.xz
Spare code cosmetics (9)
Diffstat (limited to 'pyload/cli')
-rw-r--r--pyload/cli/Cli.py8
-rw-r--r--pyload/cli/ManageFiles.py6
2 files changed, 7 insertions, 7 deletions
diff --git a/pyload/cli/Cli.py b/pyload/cli/Cli.py
index cd3252220..fc5236ff9 100644
--- a/pyload/cli/Cli.py
+++ b/pyload/cli/Cli.py
@@ -55,8 +55,8 @@ class Cli(object):
self.lock = Lock()
# processor funcions, these will be changed dynamically depending on control flow
- self.headerHandler = self # the download status
- self.bodyHandler = self # the menu section
+ self.headerHandler = self #: the download status
+ self.bodyHandler = self #: the menu section
self.inputHandler = self
os.system("clear")
@@ -158,7 +158,7 @@ class Cli(object):
line += 1
for download in data:
- if download.status == 12: # downloading
+ if download.status == 12: #: downloading
percent = download.percent
z = percent / 4
speed += download.speed
@@ -265,7 +265,7 @@ class Cli(object):
print "No downloads running."
for download in files:
- if download.status == 12: # downloading
+ if download.status == 12: #: downloading
print print_status(download)
print "\tDownloading: %s @ %s/s\t %s (%s%%)" % (
download.format_eta, formatSize(download.speed), formatSize(download.size - download.bleft),
diff --git a/pyload/cli/ManageFiles.py b/pyload/cli/ManageFiles.py
index 2e7f725dd..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