]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104400: pygettext: use an AST parser instead of a tokenizer (GH-104402)
authorTomas R. <tomas.roun8@gmail.com>
Tue, 11 Feb 2025 11:51:42 +0000 (12:51 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 11:51:42 +0000 (13:51 +0200)
commit374abded070b861cc389d509937344073193c36a
treeac6820d323c200e910924d94a0ac232b1de77980
parent1da412e574670cd8b48854112ba118c28ff2aba0
gh-104400: pygettext: use an AST parser instead of a tokenizer (GH-104402)

This greatly simplifies the code and fixes many corner cases.
Lib/test/test_tools/i18n_data/docstrings.pot
Lib/test/test_tools/i18n_data/docstrings.py
Lib/test/test_tools/i18n_data/messages.pot
Lib/test/test_tools/i18n_data/messages.py
Lib/test/test_tools/test_i18n.py
Misc/NEWS.d/next/Tools-Demos/2023-05-11-23-32-25.gh-issue-104400.23vxm7.rst [new file with mode: 0644]
Tools/i18n/pygettext.py