summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2005-10-20 04:36:08 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2005-10-20 04:36:08 (GMT)
commit40563eddf17f072a74eba0bf7b77229f77bcc3d3 (patch)
treebcf7c611f774ec34f368ab1e56cebb2c97b6d806 /Lib
parent8456235088451836dc14492492e1735124f6dee4 (diff)
downloadcpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.zip
cpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.tar.gz
cpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.tar.bz2
Get BSD DB working most for version 3.2
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bsddb/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index 0fc1892..cfe554b 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -372,6 +372,8 @@ def _checkflag(flag, file):
try:
import thread
del thread
+ if db.version() < (3, 3, 0):
+ db.DB_THREAD = 0
except ImportError:
db.DB_THREAD = 0