summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2025-05-05 15:09:19 (GMT)
committerGitHub <noreply@github.com>2025-05-05 15:09:19 (GMT)
commit4c56563f7aaed8548b604b28d65ebdbcecde7a16 (patch)
tree643566226eba18c2183331b5565a956e3a506547 /Python
parentc336f1c3126203fd6c38050df94e9fe8c0d7f2e2 (diff)
downloadcpython-4c56563f7aaed8548b604b28d65ebdbcecde7a16.zip
cpython-4c56563f7aaed8548b604b28d65ebdbcecde7a16.tar.gz
cpython-4c56563f7aaed8548b604b28d65ebdbcecde7a16.tar.bz2
GH-133336: Remove reserved ``-J`` flag for Jython (#133444)
Diffstat (limited to 'Python')
-rw-r--r--Python/getopt.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/Python/getopt.c b/Python/getopt.c
index 39a6938..79bea23 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -37,7 +37,7 @@ static const wchar_t *opt_ptr = L"";
/* Python command line short and long options */
-#define SHORT_OPTS L"bBc:dEhiIJm:OPqRsStuvVW:xX:?"
+#define SHORT_OPTS L"bBc:dEhiIm:OPqRsStuvVW:xX:?"
static const _PyOS_LongOption longopts[] = {
/* name, has_arg, val (used in switch in initconfig.c) */
@@ -133,13 +133,6 @@ int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex)
return opt->val;
}
- if (option == 'J') {
- if (_PyOS_opterr) {
- fprintf(stderr, "-J is reserved for Jython\n");
- }
- return '_';
- }
-
if ((ptr = wcschr(SHORT_OPTS, option)) == NULL) {
if (_PyOS_opterr) {
fprintf(stderr, "Unknown option: -%c\n", (char)option);