diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-05 23:27:15 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-05 23:27:15 +0000 |
commit | 41caf78183af5c0f225a65b6e31954fc12b29d4b (patch) | |
tree | 8027ff3c96ca6c941713b08a788ddf11384c2b74 /Python | |
parent | 03be9e6bf50ad3ef0a6187aa7d728249e83ad2c1 (diff) | |
download | cpython-41caf78183af5c0f225a65b6e31954fc12b29d4b.tar.gz |
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
Reviewer: Alexandre Vassalotti
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 39c86e749f..3e40d51fc0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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 |