diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-20 22:48:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-20 23:02:00 +0200 |
commit | 5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363 (patch) | |
tree | d5fbe979c043f5aa684272c97c0305d3124b1901 /pyload/api/__init__.py | |
parent | PEP-8, Python Zen, refactor and reduce code (part 12 in master module/remote/... (diff) | |
download | pyload-5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363.tar.xz |
Spare code cosmetics (8)
Diffstat (limited to 'pyload/api/__init__.py')
-rw-r--r-- | pyload/api/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/api/__init__.py b/pyload/api/__init__.py index ab717525d..1c292d541 100644 --- a/pyload/api/__init__.py +++ b/pyload/api/__init__.py @@ -896,7 +896,7 @@ class Api(Iface): accounts = [AccountInfo(acc['validuntil'], acc['login'], acc['options'], acc['valid'], acc['trafficleft'], acc['maxtraffic'], acc['premium'], acc['type']) for acc in group] - return accounts or [] + return accounts or list() @permission(PERMS.ALL) @@ -909,9 +909,9 @@ class Api(Iface): @permission(PERMS.ACCOUNTS) - def updateAccount(self, plugin, account, password=None, options=None): + def updateAccount(self, plugin, account, password=None, options={}): """Changes pw/options for specific account.""" - self.core.accountManager.updateAccount(plugin, account, password, options or {}) + self.core.accountManager.updateAccount(plugin, account, password, options) @permission(PERMS.ACCOUNTS) |