Skip to content

Housekeeping and transitional deprecation warning#217

Merged
kjd merged 3 commits into
masterfrom
housekeeping-2
Apr 21, 2026
Merged

Housekeeping and transitional deprecation warning#217
kjd merged 3 commits into
masterfrom
housekeeping-2

Conversation

@kjd

@kjd kjd commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add deprecation warning when transitional=True is passed to encode(), 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.
  • Code quality and CI housekeeping: simplify uts46_remap control flow, update CI matrix, clean up dead code in tooling.

kjd added 3 commits April 20, 2026 19:50
- 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().
@kjd kjd merged commit c5459a1 into master Apr 21, 2026
37 checks passed
@kjd kjd deleted the housekeeping-2 branch April 21, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant