Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-104400: Remove fintl.gettext from pygettext #129580

Merged
merged 4 commits into from
Feb 2, 2025

Conversation

AA-Turner
Copy link
Member

@AA-Turner AA-Turner commented Feb 2, 2025

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.


The code was introduced in c8f0892, but unchanged since. There is no fintl package on PyPI.

This page references a Sourceforge page which is HTTP 404, but does exist on the WayBack Machine (latest working link from 2003!), so safe to say this code is long-unused -- the copyright & posting dates are before Python 2 was released in October 2000.

fintl is never installed or tested, so the fallback is unconditionally
used. This means we can simplify, converting the docstring to a real
docstring, and converting some other strings to f-strings
@AA-Turner AA-Turner requested a review from tomasr8 February 2, 2025 13:41
@AA-Turner AA-Turner changed the title gh-104400: Remove fintl.gettext from pygettext gh-104400: Remove fintl.gettext from pygettext Feb 2, 2025
This has not been updated since 2002, the git history can be used
@AA-Turner AA-Turner enabled auto-merge (squash) February 2, 2025 14:15
@AA-Turner AA-Turner merged commit 237f186 into python:main Feb 2, 2025
38 checks passed
@AA-Turner AA-Turner deleted the pygettext-docstring branch February 2, 2025 17:45
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants