Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Sep 16, 2024
1 parent 69f0d75 commit 3e54e9d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2800,8 +2800,7 @@ SEXP main_process_python_info_win32() {
#else

// a simplified version of loadSymbol adopted from libpython.cpp
void loadSymbol(void* pLib, const std::string& name, void** ppSymbol)
{
void loadSymbol(void* pLib, const std::string& name, void** ppSymbol) {
*ppSymbol = NULL;
*ppSymbol = ::dlsym(pLib, name.c_str());
}
Expand Down Expand Up @@ -2840,8 +2839,8 @@ SEXP main_process_python_info_unix() {
}

if (PyGILState_Release == NULL) {
// PyGILState_Ensure is always not NULL, since we set it in reticulate_init()
loadSymbol(pLib, "PyGILState_Release", (void**)&PyGILState_Release);
// PyGILState_Ensure is always not NULL, since we set it in reticulate_init()
loadSymbol(pLib, "PyGILState_Ensure", (void**)&PyGILState_Ensure);
}

Expand Down Expand Up @@ -2924,8 +2923,6 @@ void py_initialize(const std::string& python,
if (Py_IsInitialized()) {
// if R is embedded in a python environment, rpycall has to be loaded as a regular
// module.


GILScope scope;
PyImport_AddModule("rpycall");
PyDict_SetItemString(PyImport_GetModuleDict(), "rpycall", initializeRPYCall());
Expand Down

0 comments on commit 3e54e9d

Please sign in to comment.