mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +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
1 changed files with 0 additions and 8 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue