diff options
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r-- | Lib/dumbdbm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py index 6c500bc..1c9b572 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -109,7 +109,7 @@ class _Database(UserDict.DictMixin): f = self._open(self._dirfile, 'w') self._chmod(self._dirfile) - for key, pos_and_siz_pair in self._index.iteritems(): + for key, pos_and_siz_pair in self._index.items(): f.write("%r, %r\n" % (key, pos_and_siz_pair)) f.close() @@ -202,7 +202,7 @@ class _Database(UserDict.DictMixin): return key in self._index def iterkeys(self): - return self._index.iterkeys() + return self._index.keys() __iter__ = iterkeys def __len__(self): |