MCPcopy Index your code
hub / github.com/python/cpython / normalize

Function normalize

Lib/urllib/robotparser.py:24–26  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

22
23
24def normalize(path):
25 unquoted = urllib.parse.unquote(path, errors='surrogateescape')
26 return urllib.parse.quote(unquoted, errors='surrogateescape')
27
28def normalize_path(path):
29 path, sep, query = path.partition('?')

Callers 1

normalize_pathFunction · 0.70

Calls 1

quoteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…