Python: URI decoding: now properly checking that paths can be encoded in
ASCII (issue #89)
This commit is contained in:
@ -174,6 +174,9 @@ def open_uri(uri,
|
||||
dms_only=False,
|
||||
force_file=False):
|
||||
|
||||
if not uri.isascii():
|
||||
raise Exception("Paths must be ASCII characters only")
|
||||
|
||||
cdef bytes urib = tobytes(uri)
|
||||
cdef bytes scheme
|
||||
cdef tuple dms
|
||||
|
Reference in New Issue
Block a user