]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46080: fix argparse help generation exception in edge case (GH-30111)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Jan 2022 23:22:50 +0000 (15:22 -0800)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 23:22:50 +0000 (15:22 -0800)
commitc6691a7ccbd027298ea2486014b55db037fffc9f
tree36020f6b4bf897e21dc36e5695621b303757a6e4
parente8e71c481a4ac05f35b423d661b38e67d035912a
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.
(cherry picked from commit 9e87c0e03fa501fb90008547983ce4c1dcaaf90c)

Co-authored-by: Felix Fontein <felix@fontein.de>
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]