]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:10:34 +0000 (16:10 +0200)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 14:10:34 +0000 (16:10 +0200)
commite913c6f4d6134ad04ecd59c0408d2b13ff44e342
tree43c22a11c119181051bb7ac2289e09c8c6d77109
parent26c3e700b15b8f2845d29b2872a0a5854b349730
[3.11] gh-110519: Improve deprecation warning in the gettext module (GH-110520) (GH-110564)

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]