summaryrefslogtreecommitdiffstats
path: root/Python/modsupport.c
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2022-05-03 16:38:18 (GMT)
committerGitHub <noreply@github.com>2022-05-03 16:38:18 (GMT)
commit20490d5018cff4c604b37142323c531f8512b9aa (patch)
tree8b8b3717c4f24fdf4b6024f301538ddbda10c4f2 /Python/modsupport.c
parent6c25bf07e86b6d8d5e50488835f70539f382d7e0 (diff)
downloadcpython-20490d5018cff4c604b37142323c531f8512b9aa.zip
cpython-20490d5018cff4c604b37142323c531f8512b9aa.tar.gz
cpython-20490d5018cff4c604b37142323c531f8512b9aa.tar.bz2
gh-88753: Make BooleanOptionalAction's addition of default to help more similar to other actions (#27808)
Help for other actions omit the default value if default is SUPPRESS or already contains the special format string '%(default)'. Add those special cases to BooleanOptionalAction's help formatting too. Fixes https://bugs.python.org/issue44587 so that default=SUPPRESS is not emitted. Fixes https://bugs.python.org/issue38956 as this code will detect whether '%(default)s' has already been specified in the help string. Signed-off-by: Micky Yun Chan (michiboo): <chanmickyyun@gmail.com> Co-authored-by: Micky Yun Chan <michan@redhat.com>
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions