summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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