summaryrefslogtreecommitdiffstats
path: root/Python/dynload_win.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-07-14 05:59:56 (GMT)
committerPetr Viktorin <pviktori@redhat.com>2019-07-14 05:59:56 (GMT)
commitb1e4d1b6032d4c82b549233fa08a2c7cfe7e818b (patch)
treebaa898fbe2437237f4c303a93985c373e03e5fbd /Python/dynload_win.c
parentb815669c833c543b0f6696c3121a179f6b2383a6 (diff)
downloadcpython-b1e4d1b6032d4c82b549233fa08a2c7cfe7e818b.zip
cpython-b1e4d1b6032d4c82b549233fa08a2c7cfe7e818b.tar.gz
cpython-b1e4d1b6032d4c82b549233fa08a2c7cfe7e818b.tar.bz2
bpo-26967: fix flag grouping with allow_abbrev=False (GH-14316) (GH-14759)
The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing. However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this. This was prompted by pytest-dev/pytestGH-5469, so a backport to at least 3.8 would be great :smile: And this is my first PR to CPython, so please let me know if I've missed anything! https://bugs.python.org/issue26967 (cherry picked from commit dffca9e925ee5c3072663cbe8d4d4768406d5307) Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com>
Diffstat (limited to 'Python/dynload_win.c')
0 files changed, 0 insertions, 0 deletions