summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-06 19:48:38 +0000
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-06 19:48:38 +0000
commit11d19a862f9f9171a05d399afd92074ba6dd60cc (patch)
treecc8dfb6442e8348513b8a1a7aaab2c4047a1b529 /Python/pythonrun.c
parentc2ca5143b63858738528485245a0ae929ae0a783 (diff)
downloadcpython-11d19a862f9f9171a05d399afd92074ba6dd60cc.tar.gz
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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index a80cb143fa..e2ba185a7a 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -240,11 +240,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