]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46080: fix argparse help generation exception in edge case (GH-30111)
authorFelix Fontein <felix@fontein.de>
Thu, 20 Jan 2022 22:48:48 +0000 (23:48 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 22:48:48 +0000 (00:48 +0200)
commit9e87c0e03fa501fb90008547983ce4c1dcaaf90c
tree8759fddb2025377171f850470e6f76d0ddf56993
parent30fb6d073d9ca00dff8e4155c523cdfa63abab6b
bpo-46080: fix argparse help generation exception in edge case (GH-30111)

Fix an uncaught exception during help text generation when
argparse.BooleanOptionalAction is used with default=argparse.SUPPRESS
and help is specified.
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2021-12-15-06-29-00.bpo-46080.AuQpLt.rst [new file with mode: 0644]