summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Account.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:42:49 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-25 09:42:49 +0200
commit952001324e1faf584b1adcb01c4a0406a3722932 (patch)
treeed87ade69e207e677d1144147b381bcd508ab25d /module/plugins/internal/Account.py
parentAccount rewritten (2) (diff)
downloadpyload-952001324e1faf584b1adcb01c4a0406a3722932.tar.xz
Don't user dictionary’s iterator methods
Diffstat (limited to 'module/plugins/internal/Account.py')
-rw-r--r--module/plugins/internal/Account.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index f33d44179..b59a59932 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -88,7 +88,7 @@ class Account(Plugin):
#@TODO: Rewrite in 0.4.10
def init_accounts(self, accounts):
- for user, data in accounts.iteritems():
+ for user, data in accounts.items():
self.add(user, data['password'], data['options'])
self._login(user)
@@ -254,7 +254,7 @@ class Account(Plugin):
#: Remove in 0.4.10
def getAllAccounts(self, *args, **kwargs):
- return [self.getAccountData(user, *args, **kwargs) for user, info in self.info.iteritems()]
+ return [self.getAccountData(user, *args, **kwargs) for user, info in self.info.items()]
def login_fail(self, reason=_("Login handshake has failed")):
@@ -281,7 +281,7 @@ class Account(Plugin):
Returns an valid account name and data
"""
usable = []
- for user, info in self.info.iteritems():
+ for user, info in self.info.items():
if not info['login']['valid']:
continue