summaryrefslogtreecommitdiffstats
path: root/Lib/dumbdbm.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2003-07-12 20:23:09 (GMT)
committerTim Peters <tim.peters@gmail.com>2003-07-12 20:23:09 (GMT)
commit3898a70bcf3be9e21911cd7b99bb498d45f03789 (patch)
tree1535b2cf38d10a78ea3bdb3a5bf7d9b5017efcde /Lib/dumbdbm.py
parent7dfd5701b20c3566166e148f77591a2912164221 (diff)
downloadcpython-3898a70bcf3be9e21911cd7b99bb498d45f03789.zip
cpython-3898a70bcf3be9e21911cd7b99bb498d45f03789.tar.gz
cpython-3898a70bcf3be9e21911cd7b99bb498d45f03789.tar.bz2
_commit(): Modernization.
Diffstat (limited to 'Lib/dumbdbm.py')
-rw-r--r--Lib/dumbdbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 1af22b1..db093d40 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):