]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-131434: Improve error reporting for incorrect format in strptime() (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 9 Apr 2025 10:50:24 +0000 (12:50 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Apr 2025 10:50:24 +0000 (10:50 +0000)
commite2d13b42ff049469b3dd6f99d708fe02b7fc75df
treeeb5df84e072c973f65575867e568728dab8c792c
parent8e97bd7ef41b00b6ef229b4db9deeb848b6f4388
[3.13] gh-131434: Improve error reporting for incorrect format in strptime() (GH-131568) (GH-132309)

In particularly, fix regression in detecting stray % at the end of the
format string.
(cherry picked from commit 3feac7a093b3fcd549c5dc54277f26f585f2ab0c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/_strptime.py
Lib/test/test_strptime.py
Lib/test/test_time.py
Misc/NEWS.d/next/Library/2025-03-21-21-24-36.gh-issue-131434.BPkyyh.rst [new file with mode: 0644]