[issue46453] argparse subparser help text is not escaped before string formatting
Peder Bergebakken Sundt
report at bugs.python.org
Fri Jan 21 06:37:00 EST 2022
New submission from Peder Bergebakken Sundt <pbsds at hotmail.com>:
The `help` text in add_argument of a subparser in argparse can not contain a `%`, as it will affect string formatting. This often results in an exception.
See repro.py for a reproduction, tested in Python 3.7 - 3.10.
----------
components: Library (Lib)
files: repro.py
messages: 411110
nosy: pbsds
priority: normal
severity: normal
status: open
title: argparse subparser help text is not escaped before string formatting
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9
Added file: https://bugs.python.org/file50569/repro.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46453>
_______________________________________
More information about the Python-bugs-list
mailing list