Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.12] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808)#126847

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedNov 14, 2024
edited by bedevere-appbot
Loading

Fixes a bug where pygettext would attempt
to extract a message from a code like this:

def _(x): pass

This is because pygettext only looks at one
token at a time and '_(x)' looks like a
function call.

However, since 'x' is not a string literal,
it would erroneously issue a warning.
(cherry picked from commit9a45638)

Co-authored-by: Tomas R.tomas.roun8@gmail.com

…unction definitions. (pythonGH-126808)Fixes a bug where pygettext would attemptto extract a message from a code like this:def _(x): passThis is because pygettext only looks at onetoken at a time and '_(x)' looks like afunction call.However, since 'x' is not a string literal,it would erroneously issue a warning.(cherry picked from commit9a45638)Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
@serhiy-storchakaserhiy-storchakaenabled auto-merge (squash)November 14, 2024 22:27
@serhiy-storchakaserhiy-storchaka merged commit306db14 intopython:3.12Nov 14, 2024
30 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@miss-islington@serhiy-storchaka@tomasr8

[8]ページ先頭

©2009-2025 Movatter.jp