summaryrefslogtreecommitdiffstats
path: root/pyload/datatype
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/datatype')
-rw-r--r--pyload/datatype/File.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyload/datatype/File.py b/pyload/datatype/File.py
index 713442265..93aa636d7 100644
--- a/pyload/datatype/File.py
+++ b/pyload/datatype/File.py
@@ -217,7 +217,8 @@ class PyFile(object):
""" formats and return wait time in humanreadable format """
seconds = self.waitUntil - time()
- if seconds < 0: return "00:00:00"
+ if seconds < 0:
+ return "00:00:00"
hours, seconds = divmod(seconds, 3600)
minutes, seconds = divmod(seconds, 60)
@@ -233,7 +234,8 @@ class PyFile(object):
""" formats eta to readable format """
seconds = self.getETA()
- if seconds < 0: return "00:00:00"
+ if seconds < 0:
+ return "00:00:00"
hours, seconds = divmod(seconds, 3600)
minutes, seconds = divmod(seconds, 60)