[Python-checkins] python/dist/src/Lib dumbdbm.py,1.23,1.24

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 12 Jul 2003 13:23:11 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv31377/Lib

Modified Files:
	dumbdbm.py 
Log Message:
_commit():  Modernization.


Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** dumbdbm.py	12 Jul 2003 20:11:25 -0000	1.23
--- dumbdbm.py	12 Jul 2003 20:23:09 -0000	1.24
***************
*** 90,95 ****
  
          f = _open(self._dirfile, 'w', self._mode)
!         for key, (pos, siz) in self._index.items():
!             f.write("%r, (%d, %d)\n" % (key, pos, siz))
          f.close()
  
--- 90,95 ----
  
          f = _open(self._dirfile, 'w', self._mode)
!         for key, pos_and_siz_pair in self._index.iteritems():
!             f.write("%r, %r\n" % (key, pos_and_siz_pair))
          f.close()