diff options
author | shadchin <[email protected]> | 2024-02-07 09:25:06 +0300 |
---|---|---|
committer | Alexander Smirnov <[email protected]> | 2024-02-09 19:18:32 +0300 |
commit | f0785dc88eee3da0f1514f5b4cafa931571e669d (patch) | |
tree | 44165310ad6023cd29776f9b1b4477364cd2b5bb /contrib/tools/python3/src/Lib/argparse.py | |
parent | 2c0985fb513cb5b352324abf223bf749c6c2bd24 (diff) |
Update Python 3 to 3.11.8
Diffstat (limited to 'contrib/tools/python3/src/Lib/argparse.py')
-rw-r--r-- | contrib/tools/python3/src/Lib/argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tools/python3/src/Lib/argparse.py b/contrib/tools/python3/src/Lib/argparse.py index 9962e61a679..a999ea60614 100644 --- a/contrib/tools/python3/src/Lib/argparse.py +++ b/contrib/tools/python3/src/Lib/argparse.py @@ -2464,7 +2464,7 @@ class ArgumentParser(_AttributeHolder, _ActionsContainer): # ======================== def _get_values(self, action, arg_strings): # for everything but PARSER, REMAINDER args, strip out first '--' - if action.nargs not in [PARSER, REMAINDER]: + if not action.option_strings and action.nargs not in [PARSER, REMAINDER]: try: arg_strings.remove('--') except ValueError: |