]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-107614: Normalise Argument Clinic error messages (#107615)
authorErlend E. Aasland <erlend@python.org>
Fri, 4 Aug 2023 12:13:10 +0000 (14:13 +0200)
committerGitHub <noreply@github.com>
Fri, 4 Aug 2023 12:13:10 +0000 (12:13 +0000)
commitac7605ed197e8b2336d44c8ac8aeae6faa90a768
tree43d895c19e80353e632830e4c9d8b11dac9c57ed
parent2ba7c7f7b151ff56cf12bf3cab286981bb646c90
gh-107614: Normalise Argument Clinic error messages (#107615)

- always wrap the offending line, token, or name in quotes
- in most cases, put the entire error message on one line

Added tests for uncovered branches that were touched by this PR.

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/test/test_clinic.py
Tools/clinic/clinic.py