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):
|
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
|
help = action.help
|
||||||
if help is None:
|
if help is None:
|
||||||
help = ''
|
help = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user