diff options
author | synweap15 <shamdog+github@gmail.com> | 2014-07-09 12:16:36 +0200 |
---|---|---|
committer | synweap15 <shamdog+github@gmail.com> | 2014-07-09 12:16:36 +0200 |
commit | 0fc351436bfb4a94749899e34c46bf81a44c92c9 (patch) | |
tree | a1ac4004e87ab477eb9dd15a5ee34c662d14c586 /module/plugins/accounts/NoPremiumPl.py | |
parent | simplify json loads, replace crypto with hashlib (diff) | |
download | pyload-0fc351436bfb4a94749899e34c46bf81a44c92c9.tar.xz |
replace is_premium with direct expression
Diffstat (limited to 'module/plugins/accounts/NoPremiumPl.py')
-rw-r--r-- | module/plugins/accounts/NoPremiumPl.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py index 0f3b5286f..49c9b7653 100644 --- a/module/plugins/accounts/NoPremiumPl.py +++ b/module/plugins/accounts/NoPremiumPl.py @@ -42,9 +42,8 @@ class NoPremiumPl(Account): premium = False valid_untill = -1 - is_premium = "expire" in result.keys() and result["expire"] is not None - if is_premium: + if "expire" in result.keys() and result["expire"] is not None: premium = True valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple()) traffic_left = result["balance"] * 1024 |