diff options
Diffstat (limited to 'alot/commands')
-rw-r--r-- | alot/commands/globals.py | 8 | ||||
-rw-r--r-- | alot/commands/thread.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 228502e7..7e9b1bd9 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -381,7 +381,7 @@ class CallCommand(Command): hooks = settings.hooks if hooks: env = {'ui': ui, 'settings': settings} - for k, v in env.iteritems(): + for k, v in env.items(): if k not in hooks.__dict__: hooks.__dict__[k] = v @@ -628,7 +628,7 @@ class HelpCommand(Command): if modemaps: txt = (section_att, '\n%s-mode specific maps' % ui.mode) linewidgets.append(urwid.Text(txt)) - for (k, v) in modemaps.iteritems(): + for (k, v) in modemaps.items(): line = urwid.Columns([('fixed', keycolumnwidth, urwid.Text((text_att, k))), urwid.Text((text_att, v))]) @@ -636,7 +636,7 @@ class HelpCommand(Command): # global maps linewidgets.append(urwid.Text((section_att, '\nglobal maps'))) - for (k, v) in globalmaps.iteritems(): + for (k, v) in globalmaps.items(): if k not in modemaps: line = urwid.Columns( [('fixed', keycolumnwidth, urwid.Text((text_att, k))), @@ -779,7 +779,7 @@ class ComposeCommand(Command): return # set forced headers - for key, value in self.headers.iteritems(): + for key, value in self.headers.items(): self.envelope.add(key, value) # set forced headers for separate parameters diff --git a/alot/commands/thread.py b/alot/commands/thread.py index c8fb634c..1066a7e3 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -313,7 +313,7 @@ class ReplyCommand(Command): res = dict() for name, address in getaddresses(recipients): res[address] = name - urecipients = [formataddr((n, a)) for a, n in res.iteritems()] + urecipients = [formataddr((n, a)) for a, n in res.items()] return sorted(urecipients) |