Skip to content

Commit 715b553

Browse files
committed
PYCBC-1796: Remove stray Py_Initialize() in PyInit__core
Changes ------- * Delete the wrong-layer Py_Initialize() call at the top of PyInit__core; the module is already running inside an initialized interpreter by the time its init function is called Change-Id: Ice4633b5a96721e053678150b9800654abd831dd Reviewed-on: https://review.couchbase.org/c/couchbase-python-client/+/249277 Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
1 parent 0a29bed commit 715b553

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/module.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ static PyModuleDef pycbc_core_module = {
129129
PyMODINIT_FUNC
130130
PyInit__core(void)
131131
{
132-
Py_Initialize();
133-
134132
PyObject* module = PyModule_Create(&pycbc_core_module);
135133
if (module == nullptr) {
136134
return nullptr;

0 commit comments

Comments
 (0)