[Python-checkins] python/dist/src/Lib/bsddb __init__.py,1.12,1.13
greg at users.sourceforge.net
greg at users.sourceforge.net
Tue Jan 13 14:59:59 EST 2004
Update of /cvsroot/python/python/dist/src/Lib/bsddb
In directory sc8-pr-cvs1:/tmp/cvs-serv6865/bsddb
Modified Files:
__init__.py
Log Message:
__init__.py: keep it compatible with older python (True and False == 1 and 0)
test_basics.py: updated for the set_get_returns_none() default of 2 change.
Index: __init__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/__init__.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** __init__.py 3 Nov 2003 01:04:41 -0000 1.12
--- __init__.py 13 Jan 2004 19:59:57 -0000 1.13
***************
*** 185,189 ****
# and DB_THREAD to be thread safe) when intermixing database
# operations that use the cursor internally with those that don't.
! def _closeCursors(self, save=True):
if self.dbc:
c = self.dbc
--- 185,189 ----
# and DB_THREAD to be thread safe) when intermixing database
# operations that use the cursor internally with those that don't.
! def _closeCursors(self, save=1):
if self.dbc:
c = self.dbc
***************
*** 224,228 ****
def close(self):
! self._closeCursors(save=False)
if self.dbc is not None:
self.dbc.close()
--- 224,228 ----
def close(self):
! self._closeCursors(save=0)
if self.dbc is not None:
self.dbc.close()
More information about the Python-checkins
mailing list