aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorTomas R. <tomas.roun8@gmail.com>2024-11-14 23:17:42 +0100
committerGitHub <noreply@github.com>2024-11-14 22:17:42 +0000
commit9a456383bed52010b90bd491277ea855626a7bba (patch)
treef91dbcd12969b9c9b9c4ae2ded757bcfd49abf9a /Python/pytime.c
parentcae9d9d20f61cdbde0765efa340b6b596c31b67f (diff)
downloadcpython-9a456383bed52010b90bd491277ea855626a7bba.tar.gz
cpython-9a456383bed52010b90bd491277ea855626a7bba.zip
gh-126807: pygettext: Do not attempt to extract messages from function definitions. (GH-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.
Diffstat (limited to 'Python/pytime.c')
0 files changed, 0 insertions, 0 deletions