diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-19 09:38:46 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-19 09:38:46 +0200 |
commit | 2fed3b3ffa3a614f71b7c73d213fc874806d656b (patch) | |
tree | 73c3983068ff3b2e6d58a26638bb66a3af5d375a /module/plugins/internal/Account.py | |
parent | Spare fixes (diff) | |
download | pyload-2fed3b3ffa3a614f71b7c73d213fc874806d656b.tar.xz |
Fix https://github.com/pyload/pyload/issues/2056
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r-- | module/plugins/internal/Account.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index 469e27cfa..f883eb25c 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -12,7 +12,7 @@ from module.plugins.internal.utils import compare_time, isiterable, lock, parse_ class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.63" + __version__ = "0.64" __status__ = "testing" __description__ = """Base account plugin""" @@ -451,10 +451,10 @@ class Account(Plugin): ########################################################################### - def parse_traffic(self, size, unit="byte"): #@NOTE: Returns kilobytes in 0.4.9 + def parse_traffic(self, size, unit=None): #@NOTE: Returns kilobytes in 0.4.9 self.log_debug("Size: %s" % size, - "Unit: %s" % (unit if unit is not "byte" else "N/D")) - return parse_size(size, unit) / 1024 #@TODO: Remove `/ 1024` in 0.4.10 + "Unit: %s" % (unit or "N/D")) + return parse_size(size, unit or "byte") / 1024 #@TODO: Remove `/ 1024` in 0.4.10 def fail_login(self, msg=_("Login handshake has failed")): |