We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bebb594 commit 08679d8Copy full SHA for 08679d8
Python/pylifecycle.c
@@ -1083,8 +1083,11 @@ run_presite(PyThreadState *tstate)
1083
PyInterpreterState *interp = tstate->interp;
1084
const PyConfig *config = _PyInterpreterState_GetConfig(interp);
1085
1086
- if (config->run_presite) {
1087
- PyObject *presite_modname = PyUnicode_FromWideChar(
+ if (!config->run_presite) {
+ return;
1088
+ }
1089
+
1090
+ PyObject *presite_modname = PyUnicode_FromWideChar(
1091
config->run_presite,
1092
wcslen(config->run_presite)
1093
);
@@ -1102,7 +1105,6 @@ run_presite(PyThreadState *tstate)
1102
1105
Py_DECREF(presite_modname);
1103
1106
}
1104
1107
-}
1108
#endif
1109
1110
0 commit comments