-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
When using the new f-strings in 3.12 with the same quotes, pygettext failes.
from gettext import gettext as _
print(_(f"Hello, {_("Test")}!"))
Running pygettext returns the following error:
*** test.py:3: Seen unexpected token "f""
CPython versions tested on:
3.12
Operating systems tested on:
Linux, Windows
m-aciek
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done