]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110519: Improve deprecation warning in the gettext module (#110520)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 9 Oct 2023 13:45:22 +0000 (16:45 +0300)
committerGitHub <noreply@github.com>
Mon, 9 Oct 2023 13:45:22 +0000 (15:45 +0200)
commit326c6c4e07137b43c49b74bd5528619360080469
tree03fb444c0b06b3b428eaa9fea9e59fdc8391c54c
parent7bd560ce8de41e62230975c44fd7fbd189e8e858
gh-110519: Improve deprecation warning in the gettext module (#110520)

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().
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]