Housekeeping and transitional deprecation warning#217
Merged
Conversation
- Remove dead Python 2 version guard in tools/idna-data - Add --test-dir option to make-libdata for separate test output - Rename SCRIPT_WHITELIST to CONTEXT_SCRIPTS - Replace raise/except IndexError control flow in uts46_remap - Rename CI job from mypy to lint - Use 3.14 instead of 3.14-dev in CI build matrix - Remove dead requirements.txt check from CI
Transitional processing was removed from UTS #46 in Unicode 16.0.0, so the transitional argument no longer has any effect. Warn users who still pass it so they can update their code before it is removed.
Add tests to verify the deprecation warning is emitted when transitional=True is passed to encode(), and that no warning is emitted with the default. Remove the duplicate warning from uts46_remap() to avoid warning twice when called via encode().
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
transitional=Trueis passed toencode(), as transitional processing was removed from UTS Overly restrictive rules for KATAKANA MIDDLE DOT #46 in Unicode 16.0.0 and the argument no longer has any effect.uts46_remapcontrol flow, update CI matrix, clean up dead code in tooling.