]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] bpo-36959: Fix error messages for invalid ISO format string in _strptime(...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 Dec 2023 19:56:42 +0000 (20:56 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Dec 2023 19:56:42 +0000 (21:56 +0200)
commita3f53a006cb10f41abf0839a73594d056dd76953
tree292adceef6cb58bd565cc5d92f51c9ec0231add9
parent2f5bfc7e66d01a61950afb2280fe6e3fbbf06e84
[3.12] bpo-36959: Fix error messages for invalid ISO format string in _strptime() (GH-13408) (GH-113495)

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>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]