summaryrefslogtreecommitdiff
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2015-03-30 01:50:00 -0700
committerLarry Hastings <larry@hastings.org>2015-03-30 01:50:00 -0700
commit09dab7a87eaa7115eeaf73016d65f2f835e25986 (patch)
tree04a83c1cfce64d3418a245feae7fee445e510949 /Python/sysmodule.c
parent736240399e469a4134dac32a340feca5395baa28 (diff)
parent45cff0c0e6c4a31ed3b5b88ee803320862fbd43a (diff)
downloadcpython-git-09dab7a87eaa7115eeaf73016d65f2f835e25986.tar.gz
Merge 3.5.0a3 release engineering changes back into trunk.
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 471389cf57..9ec25216ed 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1690,7 +1690,7 @@ _PySys_Init(void)
#if !defined(MS_WINDOWS)
{
struct _Py_stat_struct sb;
- if (_Py_fstat(fileno(stdin), &sb) == 0 &&
+ if (_Py_fstat_noraise(fileno(stdin), &sb) == 0 &&
S_ISDIR(sb.st_mode)) {
/* There's nothing more we can do. */
/* Py_FatalError() will core dump, so just exit. */