[3.12] gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-126808) (GH-126847)
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 9a456383bed52010b90bd491277ea855626a7bba) Co-authored-by: Tomas R <tomas.roun8@gmail.com>
M
Miss Islington (bot) committed
306db142c274f186da951a68fe5121330da91151
Parent: d79acd9
Committed by GitHub <noreply@github.com>
on 11/14/2024, 10:35:35 PM