diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 16:52:39 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 16:52:39 (GMT) |
commit | 8a6d1fed416fb84c74fa4fd948b3a2a395335278 (patch) | |
tree | 9b4ac3cc7318b76abc7237bed5124e13db9dfa67 /Modules/main.c | |
parent | a5c430940c0594563f3d4ac66eef2bd82904f7f4 (diff) | |
parent | a0dd22e5e824195e322cb417ebb34c66475e952d (diff) | |
download | cpython-8a6d1fed416fb84c74fa4fd948b3a2a395335278.zip cpython-8a6d1fed416fb84c74fa4fd948b3a2a395335278.tar.gz cpython-8a6d1fed416fb84c74fa4fd948b3a2a395335278.tar.bz2 |
#16306: merge with 3.2.
Diffstat (limited to 'Modules/main.c')
-rw-r--r-- | Modules/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c index a16ce65..4d2e03a 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -338,6 +338,7 @@ Py_Main(int argc, wchar_t **argv) /* Hash randomization needed early for all string operations (including -W and -X options). */ + _PyOS_opterr = 0; /* prevent printing the error in 1st pass */ while ((c = _PyOS_GetOpt(argc, argv, PROGRAM_OPTS)) != EOF) { if (c == 'm' || c == 'c') { /* -c / -m is the last option: following arguments are |