diff --git a/src/binary_c_python.c b/src/binary_c_python.c index e6634e959ec36669f3bf21b807da4b17fa679ee0..d5b062972d76a3c7d5c989446dfccdd66d111610 100644 --- a/src/binary_c_python.c +++ b/src/binary_c_python.c @@ -129,18 +129,18 @@ static PyMethodDef module_methods[] = { /* Initialise the module. Removed the part which supports python 2 here on 17-03-2020 */ /* Python 3+ */ -static struct PyModuleDef Py_binary_c_python_api = +static struct PyModuleDef Py__binary_c_bindings = { PyModuleDef_HEAD_INIT, - "binary_c_python_api", /* name of module */ - "binary_c_python_api docs", /* module documentation, may be NULL */ + "_binary_c_bindings", /* name of module */ + "TODO", /* module documentation, may be NULL */ -1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */ module_methods }; -PyMODINIT_FUNC PyInit_binary_c_python_api(void) +PyMODINIT_FUNC PyInit__binary_c_bindings(void) { - return PyModule_Create(&Py_binary_c_python_api); + return PyModule_Create(&Py__binary_c_bindings); } /* ============================================================================== */ @@ -276,7 +276,7 @@ static PyObject* binary_c_run_system(PyObject *self, PyObject *args, PyObject *k "Error (in function: binary_c_run_system): %s\n", error_buffer); } - + Safe_free(buffer); Safe_free(error_buffer);