diff options
author | DjMorgul <jmfo1982@gmail.com> | 2022-05-05 07:32:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 00:32:49 -0500 |
commit | b885b8f4be9c74ef1ce7923dbf055c31e7f47735 (patch) | |
tree | 5dbb834cacceefadb343de1551b6c6e3c92d8686 /Lib/argparse.py | |
parent | a918589578a2a807396c5f6afab7b59ab692c642 (diff) | |
download | cpython-git-b885b8f4be9c74ef1ce7923dbf055c31e7f47735.tar.gz |
Allow translating argument error messages (#17169)
Diffstat (limited to 'Lib/argparse.py')
-rw-r--r-- | Lib/argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/argparse.py b/Lib/argparse.py index 8d1a00ad22..1c5520c4b4 100644 --- a/Lib/argparse.py +++ b/Lib/argparse.py @@ -766,7 +766,7 @@ class ArgumentError(Exception): if self.argument_name is None: format = '%(message)s' else: - format = 'argument %(argument_name)s: %(message)s' + format = _('argument %(argument_name)s: %(message)s') return format % dict(message=self.message, argument_name=self.argument_name) |