-
Notifications
You must be signed in to change notification settings - Fork 88
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
Improve handling of IDNA/Unicode domains #436
Improve handling of IDNA/Unicode domains #436
Conversation
e304680
to
f83e2f0
Compare
One problem with the current approach is that Python's IDNA encoding apparently is kind of outdated, see https://pypi.org/project/idna/ (project description) and the official docs https://docs.python.org/3/library/codecs.html#module-encodings.idna. It might be better to add an optional dependency on the |
Note that |
dacbef9
to
7c8c79a
Compare
The Python 3.5 version included in the Ansible 2.9 default test container has a stupid bug which causes the above error. This has been fixed in later versions of Python 3.5 (the default test container coming with devel doesn't have it for example). (This was fixed in python/cpython@4655d57#diff-b3712475a413ec972134c0260c8f1eb1deefb66184f740ef00c37b4487ef873e as part of https://bugs.python.org/issue36742, and the fix first appeared in 3.5.8 rc 1.) |
ready_for_review |
Confirmed to be working as expected in #426 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Love to see i18n support
@briantist thanks a lot for reviewing this! |
SUMMARY
Improve IDNA/Unicode handling.
Fixes #426.
ISSUE TYPE
COMPONENT NAME
various