diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-06-01 14:08:08 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-03-01 10:34:56 -0800 |
commit | 0dcb8ad0e829fddea92c5a76e2849e55617f7825 (patch) | |
tree | e77eb1fad21241bfde217175e3d9a33d5ce3b7ab /alot/widgets/globals.py | |
parent | 06972159673c16919ddaf19ee839387af6e69a51 (diff) |
repalces uses of dict.iter* with non-iter versions
in python3 dict.{keys,items,values} return views, which are similar to
iterators without some of the caveats about modifying the underlying
object. The iter* and view* methods have been removed, instead one warps
dict.x in iter or list to get those types.
Diffstat (limited to 'alot/widgets/globals.py')
-rw-r--r-- | alot/widgets/globals.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/widgets/globals.py b/alot/widgets/globals.py index 1a8688fe..b6e662b2 100644 --- a/alot/widgets/globals.py +++ b/alot/widgets/globals.py @@ -54,7 +54,7 @@ class ChoiceWidget(urwid.Text): self.separator = separator items = [] - for k, v in choices.iteritems(): + for k, v in choices.items(): if v == select and select is not None: items += ['[', k, ']:', v] else: |