mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bugfix: allow the module to work with python compiled without thread support.
closes sourceforge pybsddb bug id 669533.
This commit is contained in:
parent
c25fd3fb48
commit
aa71f5f2b4
1 changed files with 2 additions and 0 deletions
|
@ -1072,7 +1072,9 @@ DB_associate(DBObject* self, PyObject* args, PyObject* kwargs)
|
|||
* threads have already been initialized.
|
||||
* (see pybsddb-users mailing list post on 2002-08-07)
|
||||
*/
|
||||
#ifdef WITH_THREAD
|
||||
PyEval_InitThreads();
|
||||
#endif
|
||||
MYDB_BEGIN_ALLOW_THREADS;
|
||||
#if (DBVER >= 41)
|
||||
err = self->db->associate(self->db,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue