Python: URI decoding: now properly checking that paths can be encoded in

ASCII (issue #89)
This commit is contained in:
mercierc
2021-11-02 11:17:59 +13:00
parent 405e6ef420
commit 8bd6d6c8e9

View File

@ -174,6 +174,9 @@ def open_uri(uri,
dms_only=False, dms_only=False,
force_file=False): force_file=False):
if not uri.isascii():
raise Exception("Paths must be ASCII characters only")
cdef bytes urib = tobytes(uri) cdef bytes urib = tobytes(uri)
cdef bytes scheme cdef bytes scheme
cdef tuple dms cdef tuple dms