mirror of
https://github.com/python/cpython
synced 2024-10-14 10:18:12 +00:00
argparse: remove incoherent and redundant docstring for private method (GH-101591)
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
This commit is contained in:
parent
fbd40ce46e
commit
b052fa381f
|
@ -698,14 +698,6 @@ class ArgumentDefaultsHelpFormatter(HelpFormatter):
|
|||
"""
|
||||
|
||||
def _get_help_string(self, action):
|
||||
"""
|
||||
Add the default value to the option help message.
|
||||
|
||||
ArgumentDefaultsHelpFormatter and BooleanOptionalAction when it isn't
|
||||
already present. This code will do that, detecting cornercases to
|
||||
prevent duplicates or cases where it wouldn't make sense to the end
|
||||
user.
|
||||
"""
|
||||
help = action.help
|
||||
if help is None:
|
||||
help = ''
|
||||
|
|
Loading…
Reference in a new issue