summaryrefslogtreecommitdiff
path: root/Python/getopt.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2011-04-20 17:42:50 +0200
committerJesus Cea <jcea@jcea.es>2011-04-20 17:42:50 +0200
commit67a2d7acf997a69c0592c1753be6a0986006c65f (patch)
tree9c073bd7a8c4de860391cb77b5506a66ccdd5843 /Python/getopt.c
parent2ee75d55cc5c1c419eae550c72c6b9497f47e48a (diff)
parent93b04cdb7787723c3a26019d0de8834e86150108 (diff)
downloadcpython-67a2d7acf997a69c0592c1753be6a0986006c65f.tar.gz
MERGE: startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828)
Diffstat (limited to 'Python/getopt.c')
-rw-r--r--Python/getopt.c6
1 files changed, 0 insertions, 6 deletions
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);