]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104400: Remove ``fintl.gettext`` from pygettext (#129580)
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>
Sun, 2 Feb 2025 14:30:34 +0000 (14:30 +0000)
committerGitHub <noreply@github.com>
Sun, 2 Feb 2025 14:30:34 +0000 (14:30 +0000)
commit237f186da48d45ef75ec3add3f2ffbfac75fa281
tree5228505afa84ac2f4b94a6e9a4a60fc1c8e09713
parentdf4a2f5bd74fc582d99e6a82e070058d7765f44d
gh-104400: Remove ``fintl.gettext`` from pygettext (#129580)

The ``fintl`` module is never installed or tested, meaning that the
fallback identity function is unconditionally used for ``_()``.
This means we can simplify, converting the docstring to a real
docstring, and converting some other strings to f-strings.

We also convert the module to UTF-8, sort imports,
and remove the history comment, which was last updated in 2002.
Consult the git history for a more accurate summary of changes.
Tools/i18n/pygettext.py