dirtywords

portable text interface framework  https://pypi.python.org/pypi/dirtywords
git clone https://git.ce9e.org/dirtywords.git

commit
0fa6294a6c48214b92e99b376c53b553f407fdb5
parent
37acf692577f6ed6c86065a572968c3f1f65465c
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2015-03-22 22:33
py3: do not use iter*

Diffstat

M dirtywords/base.py 2 +-
M dirtywords/curses.py 2 +-
M dirtywords/pygame.py 2 +-

3 files changed, 3 insertions, 3 deletions


diff --git a/dirtywords/base.py b/dirtywords/base.py

@@ -69,7 +69,7 @@ class AttrString(unicode):
   69    69             if attr not in defaults:
   70    70                 raise TypeError('No such attribute: %s' % attr)
   71    71 
   72    -1         for attr in defaults.iterkeys():
   -1    72         for attr in defaults.keys():
   73    73             if attr in kwargs:
   74    74                 value = kwargs[attr]
   75    75             elif isinstance(reference, AttrString):

diff --git a/dirtywords/curses.py b/dirtywords/curses.py

@@ -48,7 +48,7 @@ class Screen(base.Screen):
   48    48             'End': curses.KEY_END,
   49    49         }
   50    50 
   51    -1         for key, curses_ch in mapping.iteritems():
   -1    51         for key, curses_ch in mapping.items():
   52    52             if ch == curses_ch:
   53    53                 return KEYS[key]
   54    54 

diff --git a/dirtywords/pygame.py b/dirtywords/pygame.py

@@ -25,7 +25,7 @@ class Screen(base.Screen):
   25    25 
   26    26     def _convert_ch(self, ch):
   27    27         # key constants
   28    -1         for key, value in KEYS.iteritems():
   -1    28         for key, value in KEYS.items():
   29    29             if ch == getattr(pygame, 'K_' + key.upper()):
   30    30                 return value
   31    31