]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
argparse: remove incoherent and redundant docstring for private method (GH-101591)
authorFrank Dana <ferdnyc@gmail.com>
Wed, 21 Feb 2024 11:32:28 +0000 (06:32 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Feb 2024 11:32:28 +0000 (11:32 +0000)
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
Lib/argparse.py

index 6ef0bea5c6cd4aa9ab5bfc927f073e9f26ba5ec9..ea39d26687b931419a3a0611ee966202cb76ef12 100644 (file)
@@ -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 = ''