Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3898a70

Browse files
committed
_commit(): Modernization.
1 parent 7dfd570 commit 3898a70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/dumbdbm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def _commit(self):
8989
pass
9090

9191
f = _open(self._dirfile, 'w', self._mode)
92-
for key, (pos, siz) in self._index.items():
93-
f.write("%r, (%d, %d)\n" % (key, pos, siz))
92+
for key, pos_and_siz_pair in self._index.iteritems():
93+
f.write("%r, %r\n" % (key, pos_and_siz_pair))
9494
f.close()
9595

9696
def __getitem__(self, key):

0 commit comments

Comments
 (0)