mirror of
https://github.com/python/cpython.git
synced 2025-09-01 22:47:59 +00:00
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
Reviewer: Alexandre Vassalotti
This commit is contained in:
parent
a741ebf8a1
commit
791dc2f32c
4 changed files with 9 additions and 5 deletions
|
@ -239,11 +239,11 @@ Py_InitializeEx(int install_sigs)
|
|||
}
|
||||
|
||||
initmain(); /* Module __main__ */
|
||||
if (!Py_NoSiteFlag)
|
||||
initsite(); /* Module site */
|
||||
if (initstdio() < 0)
|
||||
Py_FatalError(
|
||||
"Py_Initialize: can't initialize sys standard streams");
|
||||
if (!Py_NoSiteFlag)
|
||||
initsite(); /* Module site */
|
||||
|
||||
/* auto-thread-state API, if available */
|
||||
#ifdef WITH_THREAD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue