MCPcopy Index your code
hub / github.com/RustPython/RustPython / _normalize_uri

Function _normalize_uri

Lib/dbm/sqlite3.py:28–33  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

26
27
28def _normalize_uri(path):
29 path = Path(path)
30 uri = path.absolute().as_uri()
31 while "//" in uri:
32 uri = uri.replace("//", "/")
33 return uri
34
35
36class _Database(MutableMapping):

Callers 3

test_uri_windowsMethod · 0.90
__init__Method · 0.85

Calls 4

absoluteMethod · 0.95
PathClass · 0.90
as_uriMethod · 0.45
replaceMethod · 0.45

Tested by 2

test_uri_windowsMethod · 0.72