summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 22:48:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-20 23:02:00 +0200
commit5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363 (patch)
treed5fbe979c043f5aa684272c97c0305d3124b1901 /pyload/manager/Account.py
parentPEP-8, Python Zen, refactor and reduce code (part 12 in master module/remote/... (diff)
downloadpyload-5a86c3cb1db6cd87bf9ae22e09dd209cecc0a363.tar.xz
Spare code cosmetics (8)
Diffstat (limited to 'pyload/manager/Account.py')
-rw-r--r--pyload/manager/Account.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/manager/Account.py b/pyload/manager/Account.py
index 44a5e5c65..ac9944134 100644
--- a/pyload/manager/Account.py
+++ b/pyload/manager/Account.py
@@ -126,8 +126,8 @@ class AccountManager(object):
f.write("\n")
f.write(plugin + ":\n")
- for name,data in accounts.iteritems():
- f.write("\n\t%s:%s\n" % (name,data['password']) )
+ for name, data in accounts.iteritems():
+ f.write("\n\t%s:%s\n" % (name, data['password']) )
if data['options']:
for option, values in data['options'].iteritems():
f.write("\t@%s %s\n" % (option, " ".join(values)))
@@ -147,12 +147,12 @@ class AccountManager(object):
@lock
- def updateAccount(self, plugin , user, password=None, options={}):
+ def updateAccount(self, plugin, user, password=None, options={}):
"""add or update account"""
if plugin in self.accounts:
p = self.getAccountPlugin(plugin)
updated = p.updateAccounts(user, password, options)
- #since accounts is a ref in plugin self.accounts doesnt need to be updated here
+ # since accounts is a ref in plugin self.accounts doesnt need to be updated here
self.saveAccounts()
if updated: p.scheduleRefresh(user, force=False)