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

Function normalize_path

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

Source from the content-addressed store, hash-verified

26 return urllib.parse.quote(unquoted, errors='surrogateescape')
27
28def normalize_path(path):
29 path, sep, query = path.partition('?')
30 path = normalize(path)
31 if sep:
32 query = re.sub(r'[^=&]+', lambda m: normalize(m[0]), query)
33 path += '?' + query
34 return path
35
36
37class RobotFileParser:

Callers 2

can_fetchMethod · 0.85
__init__Method · 0.85

Calls 3

normalizeFunction · 0.70
partitionMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…