[Python-checkins] python/dist/src/Lib dumbdbm.py,1.28,1.29

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Mon, 14 Jul 2003 05:15:17 -0700


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

Modified Files:
	dumbdbm.py 
Log Message:
Give dumbdbm a sync() method which Shelve can call.  Should solve some
database corruption problems with Spambayes.


Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** dumbdbm.py	13 Jul 2003 17:21:09 -0000	1.28
--- dumbdbm.py	14 Jul 2003 12:15:15 -0000	1.29
***************
*** 111,114 ****
--- 111,116 ----
          f.close()
  
+     sync = _commit
+ 
      def __getitem__(self, key):
          pos, siz = self._index[key]     # may raise KeyError