|
|
0391ea9 |
--- bsddb3-6.2.9/Modules/_bsddb.c~ 2020-11-26 09:38:58.000000000 -0600
|
|
|
0391ea9 |
+++ bsddb3-6.2.9/Modules/_bsddb.c 2023-10-24 10:28:36.370065106 -0500
|
|
|
0391ea9 |
@@ -1588,7 +1588,7 @@
|
|
|
0391ea9 |
* (see pybsddb-users mailing list post on 2002-08-07)
|
|
|
0391ea9 |
*/
|
|
|
0391ea9 |
#ifdef WITH_THREAD
|
|
|
0391ea9 |
- PyEval_InitThreads();
|
|
|
0391ea9 |
+ Py_Initialize();
|
|
|
0391ea9 |
#endif
|
|
|
0391ea9 |
MYDB_BEGIN_ALLOW_THREADS;
|
|
|
0391ea9 |
err = self->db->associate(self->db,
|
|
|
0391ea9 |
--- bsddb3-6.2.9/Modules/_bsddb.c.orig 2023-10-24 10:35:34.996165818 -0500
|
|
|
0391ea9 |
+++ bsddb3-6.2.9/Modules/_bsddb.c 2023-10-24 10:35:54.455077167 -0500
|
|
|
0391ea9 |
@@ -1577,7 +1577,7 @@
|
|
|
0391ea9 |
secondaryDB->associateCallback = callback;
|
|
|
0391ea9 |
secondaryDB->primaryDBType = _DB_get_type(self);
|
|
|
0391ea9 |
|
|
|
0391ea9 |
- /* PyEval_InitThreads is called here due to a quirk in python 1.5
|
|
|
0391ea9 |
+ /* Py_Initialize is called here due to a quirk in python 1.5
|
|
|
0391ea9 |
* - 2.2.1 (at least) according to Russell Williamson <merel@wt.net>:
|
|
|
0391ea9 |
* The global interepreter lock is not initialized until the first
|
|
|
0391ea9 |
* thread is created using thread.start_new_thread() or fork() is
|
|
|
0391ea9 |
@@ -2723,7 +2723,7 @@
|
|
|
0391ea9 |
/* This is to workaround a problem with un-initialized threads (see
|
|
|
0391ea9 |
comment in DB_associate) */
|
|
|
0391ea9 |
#ifdef WITH_THREAD
|
|
|
0391ea9 |
- PyEval_InitThreads();
|
|
|
0391ea9 |
+ Py_Initialize();
|
|
|
0391ea9 |
#endif
|
|
|
0391ea9 |
|
|
|
0391ea9 |
err = self->db->set_bt_compare(self->db, _db_compareCallback);
|
|
|
0391ea9 |
@@ -2845,7 +2845,7 @@
|
|
|
0391ea9 |
/* This is to workaround a problem with un-initialized threads (see
|
|
|
0391ea9 |
comment in DB_associate) */
|
|
|
0391ea9 |
#ifdef WITH_THREAD
|
|
|
0391ea9 |
- PyEval_InitThreads();
|
|
|
0391ea9 |
+ Py_Initialize();
|
|
|
0391ea9 |
#endif
|
|
|
0391ea9 |
|
|
|
0391ea9 |
err = self->db->set_dup_compare(self->db, _db_dupCompareCallback);
|
|
|
0391ea9 |
@@ -7115,7 +7115,7 @@
|
|
|
0391ea9 |
/* This is to workaround a problem with un-initialized threads (see
|
|
|
0391ea9 |
comment in DB_associate) */
|
|
|
0391ea9 |
#ifdef WITH_THREAD
|
|
|
0391ea9 |
- PyEval_InitThreads();
|
|
|
0391ea9 |
+ Py_Initialize();
|
|
|
0391ea9 |
#endif
|
|
|
0391ea9 |
|
|
|
0391ea9 |
MYDB_BEGIN_ALLOW_THREADS;
|