]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110519: Improve deprecation warning in the gettext module (GH-110520) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Oct 2023 14:27:01 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 14:27:01 +0000 (16:27 +0200)
commit1f43bc2f3ba9500d70afa9f471cb328fa3f8f4ec
tree80fcb2e446f5f3c982f6e6689a33101627021da2
parent53122bcf825681487226c041d47763e82e081530
[3.12] gh-110519: Improve deprecation warning in the gettext module (GH-110520) (GH-110563)

Deprecation warning about non-integer numbers in gettext now always refers
to the line in the user code where gettext function or method is used.
Previously, it could refer to a line in gettext code.

Also, increase test coverage for NullTranslations and domain-aware functions
like dngettext().
(cherry picked from commit 326c6c4e07137b43c49b74bd5528619360080469)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/gettext.py
Lib/test/test_gettext.py
Misc/NEWS.d/next/Library/2023-10-08-18-15-02.gh-issue-110519.RDGe8-.rst [new file with mode: 0644]