mirror of https://github.com/python/cpython.git
_commit(): Modernization.
This commit is contained in:
parent
7dfd5701b2
commit
3898a70bcf
|
@ -89,8 +89,8 @@ def _commit(self):
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue