diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 19:01:42 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-23 19:01:42 +0200 |
commit | 8b9a8f3c98d02c9e9721570428aa8420568b8f02 (patch) | |
tree | 6270f6d9a7480c83ec4de9d6fc5a71046b68674c /Modules/main.c | |
parent | 9f8c2194c20947a890b3d34e5f4ac185afa4d0fb (diff) | |
parent | 8a6d1fed416fb84c74fa4fd948b3a2a395335278 (diff) | |
download | cpython-git-8b9a8f3c98d02c9e9721570428aa8420568b8f02.tar.gz |
#16306: merge with 3.3.
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 d63c49a459..79ad6f5955 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -334,6 +334,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 |