diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-10-30 16:14:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 16:14:27 (GMT) |
commit | cc9a1839930d30450b12c460eee58137e3a3d6f1 (patch) | |
tree | db14b19fff9351f42b2819a76b6b98e5ba154cbd /Lib/test/test_code.py | |
parent | 1f16df4bfe5cfbe4ac40cc9c6d15f44bcfd99a64 (diff) | |
download | cpython-cc9a1839930d30450b12c460eee58137e3a3d6f1.zip cpython-cc9a1839930d30450b12c460eee58137e3a3d6f1.tar.gz cpython-cc9a1839930d30450b12c460eee58137e3a3d6f1.tar.bz2 |
gh-126068: Fix exceptions in the argparse module (GH-126069)
* Only error messages for ArgumentError and ArgumentTypeError are now
translated.
* ArgumentError is now only used for command line errors, not for logical
errors in the program.
* TypeError is now raised instead of ValueError for some logical errors.
Diffstat (limited to 'Lib/test/test_code.py')
0 files changed, 0 insertions, 0 deletions