diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-06-01 11:34:29 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | 06972159673c16919ddaf19ee839387af6e69a51 (patch) | |
tree | 40309504098c39d282e838ea14899b8bc5a44593 /alot/settings | |
parent | fd175a83a0fbc0a086dfc80d07f123ca32cd712e (diff) |
py3k: dict.keys() doesn't return a list anymore
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index 24d5c989..ce40ff62 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -395,7 +395,7 @@ class SettingsManager(object): def get_mapped_input_keysequences(self, mode='global', prefix=u''): # get all bindings in this mode globalmaps, modemaps = self.get_keybindings(mode) - candidates = globalmaps.keys() + modemaps.keys() + candidates = list(globalmaps.keys()) + list(modemaps.keys()) if prefix is not None: prefixes = prefix + ' ' cand = [c for c in candidates if c.startswith(prefixes)] @@ -504,7 +504,7 @@ class SettingsManager(object): def get_addresses(self): """returns addresses of known accounts including all their aliases""" - return self._accountmap.keys() + return list(self._accountmap.keys()) def get_addressbooks(self, order=None, append_remaining=True): """returns list of all defined :class:`AddressBook` objects""" |