]> granicus.if.org Git - python/commitdiff
Get BSD DB working most for version 3.2
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 20 Oct 2005 04:36:08 +0000 (04:36 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 20 Oct 2005 04:36:08 +0000 (04:36 +0000)
Lib/bsddb/__init__.py

index 0fc18928e1aadc8a67b8455a3968d19e753b65e5..cfe554b9454821dc814fc853848b836e43ea5435 100644 (file)
@@ -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