summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-09-05 23:27:15 +0000
committerBenjamin Peterson <benjamin@python.org>2008-09-05 23:27:15 +0000
commit41caf78183af5c0f225a65b6e31954fc12b29d4b (patch)
tree8027ff3c96ca6c941713b08a788ddf11384c2b74 /Python
parent03be9e6bf50ad3ef0a6187aa7d728249e83ad2c1 (diff)
downloadcpython-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.c4
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