summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-11-23 17:01:42 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-11-23 17:01:42 (GMT)
commit8b9a8f3c98d02c9e9721570428aa8420568b8f02 (patch)
tree6270f6d9a7480c83ec4de9d6fc5a71046b68674c /Modules
parent9f8c2194c20947a890b3d34e5f4ac185afa4d0fb (diff)
parent8a6d1fed416fb84c74fa4fd948b3a2a395335278 (diff)
downloadcpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.zip
cpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.tar.gz
cpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.tar.bz2
#16306: merge with 3.3.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/main.c b/Modules/main.c
index d63c49a..79ad6f5 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