Content-Length: 298177 | pFad | https://github.com/python/cpython/pull/126846

ad [3.13] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) by miss-islington · Pull Request #126846 · python/cpython · GitHub
Skip to content

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

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-9a45638-3.13
Nov 14, 2024
Merged

[3.13] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808)#126846
serhiy-storchaka merged 1 commit into
python:3.13from
miss-islington:backport-9a45638-3.13

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 14, 2024

Copy link
Copy Markdown
Contributor

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 commit 9a45638)

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

…unction definitions. (pythonGH-126808)

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 commit 9a45638)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/126846

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy