-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-104400: pygettext: use an AST parser instead of a tokenizer #104402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
ce99920
Move test_i18n into a separate folder
tomasr8 4234c0b
Switch to AST-based message extraction
tomasr8 d431951
Add news entry
tomasr8 5721857
Merge branch 'main' into better-pygettext
tomasr8 42277e8
Fix comment
tomasr8 03f698f
Merge branch 'main' into better-pygettext
tomasr8 705b608
Merge branch 'main' into better-pygettext
tomasr8 a16274f
Merge branch 'main' into better-pygettext
tomasr8 f291862
Merge branch 'main' into better-pygettext
tomasr8 ca4cd02
Merge remote-tracking branch 'upstream/main' into better-pygettext
tomasr8 22c44b4
Fix conflicts
tomasr8 5625422
Remove unrelated changes
tomasr8 a80d92e
Use match-case
tomasr8 7fe3df5
Reorder methods
tomasr8 a6b1d54
Test f-strings
tomasr8 46eba7a
Improve error messages
tomasr8 424ad6a
Update news entry
tomasr8 7d58283
Fix error messages
tomasr8 6e7ca58
Add tests for error messages
tomasr8 7cfa879
Normalize line endings on Windows
tomasr8 53e0664
Merge branch 'main' into better-pygettext
AA-Turner c85bc8e
Merge branch 'main' into better-pygettext
AA-Turner 5170691
Merge remote-tracking branch 'upstream/main' into better-pygettext
tomasr8 de52a20
Simplify docstring extraction
tomasr8 7caef48
:seal:
tomasr8 2409f72
Readability improvements
tomasr8 3a84af8
Fix tests
tomasr8 7f9c244
Remove unused method
tomasr8 3efa0ba
PEP8 fixes
tomasr8 3f22a99
Use f-strings
tomasr8 9856868
Simplifications
tomasr8 84e2d24
Add a comment
tomasr8 006e4a8
Remove walrus
tomasr8 d684780
Remove redundant function
tomasr8 084405f
Add visit_file to GettextVisitor
tomasr8 1ad8d76
Simplify reading files
tomasr8 29ec497
Reject calls with var-positional arguments
tomasr8 621cf01
Use more specific visit functions
tomasr8 a3e866d
Use aliases for some visit methods
tomasr8 4d51b08
Remove walrus
tomasr8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Tools-Demos/2023-05-11-23-32-25.gh-issue-104400.23vxm7.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix several bugs in extraction by switching to an AST parser in :program:`pygettext`. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.