diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-07-12 20:23:09 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-07-12 20:23:09 +0000 |
commit | 903eba0a29a5ca7c8bc01785fecae76dd92b55ef (patch) | |
tree | 33317b134e291f9ee456795ab07355359e444307 /Lib/dumbdbm.py | |
parent | 3c5837a1c292363e9cc99d8c9dbecc7f3099c24b (diff) | |
download | cpython-903eba0a29a5ca7c8bc01785fecae76dd92b55ef.tar.gz |
_commit(): Modernization.
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 1af22b1c1d..db093d4053 100644 --- a/Lib/dumbdbm.py +++ b/Lib/dumbdbm.py @@ -89,8 +89,8 @@ class _Database(UserDict.DictMixin): pass f = _open(self._dirfile, 'w', self._mode) - for key, (pos, siz) in self._index.items(): - f.write("%r, (%d, %d)\n" % (key, pos, siz)) + for key, pos_and_siz_pair in self._index.iteritems(): + f.write("%r, %r\n" % (key, pos_and_siz_pair)) f.close() def __getitem__(self, key): |