Skip to content

pygettext does not work with new f-strings (same quotes) #113604

Closed
@Obstbeeren

Description

@Obstbeeren

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

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions