diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-20 04:36:08 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2005-10-20 04:36:08 (GMT) |
commit | 40563eddf17f072a74eba0bf7b77229f77bcc3d3 (patch) | |
tree | bcf7c611f774ec34f368ab1e56cebb2c97b6d806 /Lib/bsddb | |
parent | 8456235088451836dc14492492e1735124f6dee4 (diff) | |
download | cpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.zip cpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.tar.gz cpython-40563eddf17f072a74eba0bf7b77229f77bcc3d3.tar.bz2 |
Get BSD DB working most for version 3.2
Diffstat (limited to 'Lib/bsddb')
-rw-r--r-- | Lib/bsddb/__init__.py | 2 |
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 |