[Python-checkins] CVS: python/dist/src/Lib dumbdbm.py,1.15,1.15.4.1
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 20 Dec 2001 21:29:47 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv10996
Modified Files:
Tag: release22-branch
dumbdbm.py
Log Message:
Merge Anthony's last-minute checkin to the trunk into the release
branch. This really is worth it!
Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.15
retrieving revision 1.15.4.1
diff -C2 -d -r1.15 -r1.15.4.1
*** dumbdbm.py 2001/12/07 21:54:46 1.15
--- dumbdbm.py 2001/12/21 05:29:45 1.15.4.1
***************
*** 144,149 ****
--- 144,155 ----
def close(self):
+ self._commit()
self._index = None
self._datfile = self._dirfile = self._bakfile = None
+
+ def __del__(self):
+ if self._index is not None:
+ self._commit()
+