URI() does not encode properly with percent-encoding
Bug #1102177 reported by
Xan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.uri |
Invalid
|
Undecided
|
Unassigned |
Bug Description
import lazr_uri # this is local copy
# https:/
a = lazr_uri.URI('http://
c = lazr_uri.URI('http://
b = lazr_uri.URI('http://
print(a, b, c)
returns URIs must consist of ASCII characters.
It's supposing that lazr.uri should encode characters itself (clearly c == b).
Can someone improve lazr.uri for encode properly unreserved chars and constructor works good?
Thanks in advance,
Xan.
c isn't a URI, because it contains non-ASCII characters. lazr.uri handles URIs.