]> 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:13:17 +0000 (15:13 -0800)
committerGitHub <noreply@github.com>
Thu, 20 Jan 2022 23:13:17 +0000 (15:13 -0800)
commite5edc8d737a45d9d8b9b93b8be52f85d79d0f417
tree8448950dc9ab2057fdd805e4f821d9ea09104030
parent876ade1ae3a805b546a211fd7303253c10395569
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]