diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-09-05 23:27:15 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-09-05 23:27:15 (GMT) |
commit | 791dc2f32c3fb707319d0c8d93d6cde6175d1e01 (patch) | |
tree | b6373a3456559c9127569319ae8e2e799e310d61 /Python | |
parent | a741ebf8a18b39e3b596707825f6e3026a5991fe (diff) | |
download | cpython-791dc2f32c3fb707319d0c8d93d6cde6175d1e01.zip cpython-791dc2f32c3fb707319d0c8d93d6cde6175d1e01.tar.gz cpython-791dc2f32c3fb707319d0c8d93d6cde6175d1e01.tar.bz2 |
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 39c86e7..3e40d51 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 |