summaryrefslogtreecommitdiffstats
path: root/pyload/datatype
diff options
context:
space:
mode:
authorGravatar ardi69 <armin@diedering.de> 2015-04-18 14:08:18 +0200
committerGravatar ardi69 <armin@diedering.de> 2015-04-18 14:08:18 +0200
commit6e8f84e1dc06cff6fa9387559992f555182c1774 (patch)
tree476600f9896fae029880e4049eb4c5e6021b202d /pyload/datatype
parentfix: config cast (diff)
parentSpare code cosmetics (5) (diff)
downloadpyload-6e8f84e1dc06cff6fa9387559992f555182c1774.tar.xz
Merge pull request #3 from vuolter/0.4.10
merge vuolter HEAD
Diffstat (limited to 'pyload/datatype')
-rw-r--r--pyload/datatype/File.py6
-rw-r--r--pyload/datatype/Package.py1
2 files changed, 5 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)
diff --git a/pyload/datatype/Package.py b/pyload/datatype/Package.py
index 7a36a1323..5ba42f596 100644
--- a/pyload/datatype/Package.py
+++ b/pyload/datatype/Package.py
@@ -4,6 +4,7 @@
from pyload.manager.Event import UpdateEvent
from pyload.utils import safe_filename
+
class PyPackage(object):
"""
Represents a package object at runtime