]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] bpo-36959: Fix error messages for invalid ISO format string in _strptime(...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 26 Dec 2023 20:09:41 +0000 (22:09 +0200)
committerGitHub <noreply@github.com>
Tue, 26 Dec 2023 20:09:41 +0000 (20:09 +0000)
commitf1951900f181e3d98e1dbd191b8ab6c852d5ab8e
tree61b6920d30988a10c7e2c31ae7b452ce7d7be4ea
parent86424e06b732f8dd7f8319e460206791a3783288
[3.11] bpo-36959: Fix error messages for invalid ISO format string in _strptime() (GH-13408) (GH-113499)

Previously some error messages complained about incompatible
combinations of directives that are not contained in the format string.

(cherry picked from commit 4b2c3e8e436b5191039cbe8cd9932654a60803e6)

Co-authored-by: Gordon P. Hemsley <me@gphemsley.org>
Lib/_strptime.py
Lib/test/test_strptime.py
Misc/NEWS.d/next/Library/2019-05-18-15-50-14.bpo-36959.ew6WZ4.rst [new file with mode: 0644]