-
Notifications
You must be signed in to change notification settings - Fork 42
Switch to using idna package #56
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #56 +/- ##
==========================================
- Coverage 97.94% 97.09% -0.85%
==========================================
Files 8 8
Lines 1408 1413 +5
Branches 164 166 +2
==========================================
- Hits 1379 1372 -7
- Misses 14 22 +8
- Partials 15 19 +4
Continue to review full report at Codecov.
|
…sts purged and replaced, fixes #19
f7a1b93
to
18f295a
Compare
Thinking out loud my anxieties here, rather than a code review:
|
@glyph, replies in order:
|
hyperlink/_url.py
Outdated
> idna.core.InvalidCodepoint: Codepoint U+004B at position 1 ... not allowed | ||
|
||
This check and some other functionality can be bypassed by passing | ||
uts46=True to encode/decode. This allows a more permission and |
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.
permission ➜ premissive
setup.py
Outdated
@@ -29,6 +29,7 @@ | |||
zip_safe=False, | |||
license=__license__, | |||
platforms='any', | |||
install_requires=['idna>=2.5,<2.7'], |
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.
I would remove the <2.7
ceiling, unless there's a known issue; otherwise you are unnecessarily (prematurely, anyway) restricting client use of a newer idna
package.
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, thanks!
…nd improve docs on implementation
@wsanchez, all fixed up! The codecov integration on this PR is all froze up, but the report itself says the diff coverage is 100%, so I'm going to merge momentarily. Thanks! |
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.
Approving on @wsanchez's behalf since he's for some reason not an "approved" approver, and also since the answers to my questions were fairly satisfactory. (What is the mechanism for adding him to that list?)
Come on codecov do your thing. |
(Please convince codecov that these lines are all covered somehow, then land.) |
@glyph yeah it's not gonna update, but the report on the site confirms 100% coverage, see screenshot above. |
@glyph I think I'm not an approved approved because I'm not a committer. |
As discussed in issue #19, Python's builtin idna support is outdated and broken. Thankfully the idna package exists. This PR switches to using that, instead of Python's builtin idna codec.