Skip to content
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

Applying to_iri on two URLs can make change the equality of URLs. #168

Open
tomprince opened this issue Jun 10, 2021 · 0 comments
Open

Applying to_iri on two URLs can make change the equality of URLs. #168

tomprince opened this issue Jun 10, 2021 · 0 comments

Comments

@tomprince
Copy link

from hyperlink import URL
url1 = URL.from_text(u"http://example.test./,")
url2 = URL.from_text(u"http://example.test./%2c")
assert url1 != url2
assert url1.to_iri() == url2.to_iri()

It seems surprising to me that to_iri() provides a level of normalization that is not available via .normalize()

This seems related to #18 and #164.

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

No branches or pull requests

1 participant