Skip to content
Prev Previous commit
Next Next commit
Fix visual indentation
  • Loading branch information
ambv committed Oct 13, 2023
commit 08679d85395cd63ab2ce32ccf7fd000f164f1f79
8 changes: 5 additions & 3 deletions Python/pylifecycle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,11 @@ run_presite(PyThreadState *tstate)
PyInterpreterState *interp = tstate->interp;
const PyConfig *config = _PyInterpreterState_GetConfig(interp);

if (config->run_presite) {
PyObject *presite_modname = PyUnicode_FromWideChar(
if (!config->run_presite) {
return;
}

PyObject *presite_modname = PyUnicode_FromWideChar(
config->run_presite,
wcslen(config->run_presite)
);
Expand All @@ -1102,7 +1105,6 @@ run_presite(PyThreadState *tstate)
Py_DECREF(presite_modname);
}
}
Comment thread
ambv marked this conversation as resolved.
}
#endif


Expand Down