summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/hyperparser.py
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-10-22 11:41:51 (GMT)
committerGitHub <noreply@github.com>2024-10-22 11:41:51 (GMT)
commit6a2f12a754d6be016c8abda5f8d432795574b594 (patch)
tree68101b03095eed84294c6bbb47c3da9931fef425 /Lib/idlelib/hyperparser.py
parent3c63d80b9513a227ad28033433f74e21ba66b479 (diff)
downloadcpython-6a2f12a754d6be016c8abda5f8d432795574b594.zip
cpython-6a2f12a754d6be016c8abda5f8d432795574b594.tar.gz
cpython-6a2f12a754d6be016c8abda5f8d432795574b594.tar.bz2
[3.10] gh-125529: Avoid f-strings in the metagrammar (#125582)
Grammar actions need to be valid Python tokens and the accepted tokens need to be listed in the actions mini-grammar). In Python 3.12+ (PEP 701), f-strings are no longer STRING tokens, so pegen fails to regenerate the metaparser on this Python version, as in: PYTHON_FOR_REGEN=python3.12 make regen-pegen-metaparser Use `+` and plain strings rather than f-strings. Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Diffstat (limited to 'Lib/idlelib/hyperparser.py')
0 files changed, 0 insertions, 0 deletions