]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154936: Fix JSON control character error position (GH-154941)
authoryangbaechu <45089264+yangbaechu@users.noreply.github.com>
Fri, 31 Jul 2026 08:57:00 +0000 (17:57 +0900)
committerGitHub <noreply@github.com>
Fri, 31 Jul 2026 08:57:00 +0000 (11:57 +0300)
commitadf836ebddd89793afb6d43a79d0a0739ee5514b
treef5763975a2c16096c4a0a5698a45613ba515cfde
parentac8ba0ca5a04cd7b27b44822d31df640e817fd78
gh-154936: Fix JSON control character error position (GH-154941)

Report the index of the invalid literal control character instead of
the following index in the pure Python decoder.
Lib/json/decoder.py
Lib/test/test_json/test_unicode.py
Misc/NEWS.d/next/Library/2026-07-30-23-29-56.gh-issue-154936.a90443.rst [new file with mode: 0644]