]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109798: Normalize `_datetime` and `datetime` error messages (#127345)
authordonBarbos <donbarbos@proton.me>
Wed, 12 Feb 2025 14:54:22 +0000 (18:54 +0400)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 14:54:22 +0000 (09:54 -0500)
commit3e222e3a15959690a41847a1177ac424427815e5
tree854b90476a998bea9cdb9bcbca9ea3d15e816029
parent57f45ee2d8ee23c2a1d1daba4095a5a044169419
gh-109798: Normalize `_datetime` and `datetime` error messages (#127345)

Updates error messages in datetime and makes them consistent between Python and C.

---------

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
Lib/_pydatetime.py
Lib/test/datetimetester.py
Misc/NEWS.d/next/Library/2024-11-27-23-29-05.gh-issue-109798.OPj1CT.rst [new file with mode: 0644]
Modules/_datetimemodule.c