summaryrefslogtreecommitdiffstats
path: root/Python
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 /Python
parent9f8c2194c20947a890b3d34e5f4ac185afa4d0fb (diff)
parent8a6d1fed416fb84c74fa4fd948b3a2a395335278 (diff)
downloadcpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.zip
cpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.tar.gz
cpython-8b9a8f3c98d02c9e9721570428aa8420568b8f02.tar.bz2
#16306: merge with 3.3.
Diffstat (limited to 'Python')
-rw-r--r--Python/getopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getopt.c b/Python/getopt.c
index 037aa5d..5cf4cbd 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -45,7 +45,7 @@ static wchar_t *opt_ptr = L"";
void _PyOS_ResetGetOpt(void)
{
- _PyOS_opterr = 0; /* prevent printing the error in 2nd loop in main.c */
+ _PyOS_opterr = 1;
_PyOS_optind = 1;
_PyOS_optarg = NULL;
opt_ptr = L"";