Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 46694:cda816c3a1e4
Added fast alternate io.BytesIO implementation and its test suite.
Removed old test suite for StringIO.
Modified truncate() to imply a seek to given argument value.
| author | Alexandre Vassalotti <alexandre@peadrop.com> |
|---|---|
| date | Tue, 06 May 2008 19:48:38 +0000 |
| parents | 47d9bbe10897 |
| children | 74b9c85361f8 |
line wrap: on
line diff
--- a/Python/pythonrun.c Tue May 06 13:58:24 2008 +0000 +++ b/Python/pythonrun.c Tue May 06 19:48:38 2008 +0000 @@ -240,11 +240,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
