Kaydet (Commit) 4cc462e8 authored tarafından Guido van Rossum's avatar Guido van Rossum

It seems obvious that when Py_Finalize() decides that there's nothing

to do, it should not call sys.exitfunc either...
üst d2dd9a8b
......@@ -179,12 +179,12 @@ Py_Finalize()
PyInterpreterState *interp;
PyThreadState *tstate;
call_sys_exitfunc();
if (!initialized)
return;
initialized = 0;
call_sys_exitfunc();
/* Get current thread state and interpreter pointer */
tstate = PyThreadState_Get();
interp = tstate->interp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment