mirror of
https://github.com/python/cpython.git
synced 2025-11-11 14:44:57 +00:00
_commit(): Modernization.
This commit is contained in:
parent
7dfd5701b2
commit
3898a70bcf
1 changed files with 2 additions and 2 deletions
|
|
@ -89,8 +89,8 @@ class _Database(UserDict.DictMixin):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
f = _open(self._dirfile, 'w', self._mode)
|
f = _open(self._dirfile, 'w', self._mode)
|
||||||
for key, (pos, siz) in self._index.items():
|
for key, pos_and_siz_pair in self._index.iteritems():
|
||||||
f.write("%r, (%d, %d)\n" % (key, pos, siz))
|
f.write("%r, %r\n" % (key, pos_and_siz_pair))
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue