Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 49035:dab7abb77e8f
compile _bytesio and _stringio into the binary and initalize stdio before site fixing #3279
Reviewer: Alexandre Vassalotti
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Fri, 05 Sep 2008 23:27:15 +0000 |
| parents | 4db1f5098175 |
| children | 9fc573fbaf5e |
line wrap: on
line diff
--- a/Python/pythonrun.c Fri Sep 05 23:01:27 2008 +0000 +++ b/Python/pythonrun.c Fri Sep 05 23:27:15 2008 +0000 @@ -239,11 +239,11 @@ } 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
