From 9583cac6337f9a5f2670fbe5e1f2e85aaad04522 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 21 Oct 2010 13:42:28 +0000 Subject: Issue #10089: Add support for arbitrary -X options on the command-line. They can be retrieved through a new attribute `sys._xoptions`. --- Python/getopt.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'Python/getopt.c') diff --git a/Python/getopt.c b/Python/getopt.c index 5147320af2..064a1874ea 100644 --- a/Python/getopt.c +++ b/Python/getopt.c @@ -89,12 +89,6 @@ int _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring) return '_'; } - if (option == 'X') { - fprintf(stderr, - "-X is reserved for implementation-specific arguments\n"); - return '_'; - } - if ((ptr = wcschr(optstring, option)) == NULL) { if (_PyOS_opterr) fprintf(stderr, "Unknown option: -%c\n", (char)option); -- cgit v1.2.1