comparison data_schema/util.py @ 26:0ef7141030ca

FIX: Typo in docs
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 08 Jul 2023 12:20:24 +0200
parents 2352d14ae261
children 88ee7d1cc0bb
comparison
equal deleted inserted replaced
25:fd2a40c3d87b 26:0ef7141030ca
42 42
43 "file:" URIs are resolved by prepending `basedir` to the URI path. 43 "file:" URIs are resolved by prepending `basedir` to the URI path.
44 44
45 "data:" URIs are resolve within "<basepackage>.<packagesubdir>". 45 "data:" URIs are resolve within "<basepackage>.<packagesubdir>".
46 46
47 The returned stream needs to be closes as usual. 47 The returned stream needs to be closed as usual.
48 48
49 """ 49 """
50 u = rfc3986.URIReference.from_string(uri).normalize() 50 u = rfc3986.URIReference.from_string(uri).normalize()
51 if u.scheme == "data": 51 if u.scheme == "data":
52 if u.authority or u.query or u.fragment: 52 if u.authority or u.query or u.fragment: