-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use yarl
to clean up some code
#1415
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1415 +/- ##
===========================================
- Coverage 88.53% 68.09% -20.44%
===========================================
Files 77 77
Lines 10527 10522 -5
===========================================
- Hits 9320 7165 -2155
- Misses 1207 3357 +2150
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
u1 = u1.with_path(u1.path.rstrip("/")) | ||
u2 = URL(url2) | ||
u2 = u2.with_path(u2.path.rstrip("/")) | ||
return u1 == u2 |
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.
so how is this better? will it reorder query params or smth to find equality? if so -- would be nice to add a testcase which would solidify adding such capability which was not present before.
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.
It normalizes various URL bits, such as lowercasing the scheme & host and normalizing internationalized domain names.
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.
Tests added: e58df62
The current test failures are due to connection issues with purl.obolibrary.org. |
I filed an issue
|
fwiw ontobee is back online, tests passed after merging |
🚀 PR was released in |
Closes #1380.