diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index 0fc18928e1aa..cfe554b94548 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