From: Frank Dana Date: Wed, 21 Feb 2024 11:32:28 +0000 (-0500) Subject: argparse: remove incoherent and redundant docstring for private method (GH-101591) X-Git-Tag: v3.13.0a5~296 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b052fa381fa2ce6820332d56fb22cd7156529d24;p=thirdparty%2FPython%2Fcpython.git argparse: remove incoherent and redundant docstring for private method (GH-101591) Signed-off-by: FeRD (Frank Dana) --- diff --git a/Lib/argparse.py b/Lib/argparse.py index 6ef0bea5c6cd..ea39d26687b9 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -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 = ''