From: Neal Norwitz Date: Thu, 20 Oct 2005 04:36:58 +0000 (+0000) Subject: Get BSD DB working most for version 3.2 X-Git-Tag: v2.4.3c1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=583e1235c3058dc6d7c20377e8474eba054944fe;p=thirdparty%2FPython%2Fcpython.git Get BSD DB working most for version 3.2 --- 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