__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.
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index 99499c5..9c59b00 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -184,7 +184,7 @@
# BerkeleyDB deadlocks (due to being opened with DB_INIT_LOCK
# 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):
+ def _closeCursors(self, save=1):
if self.dbc:
c = self.dbc
self.dbc = None
@@ -223,7 +223,7 @@
del self.db[key]
def close(self):
- self._closeCursors(save=False)
+ self._closeCursors(save=0)
if self.dbc is not None:
self.dbc.close()
v = 0