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

Function _norm

Lib/test/test_ntpath.py:51–56  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

49 return result[:result_len]
50
51def _norm(path):
52 if isinstance(path, (bytes, str, os.PathLike)):
53 return ntpath.normcase(os.fsdecode(path))
54 elif hasattr(path, "__iter__"):
55 return tuple(ntpath.normcase(os.fsdecode(p)) for p in path)
56 return path
57
58
59def tester(fn, wantResult):

Callers 3

testerFunction · 0.85
assertPathEqualMethod · 0.85
assertPathInMethod · 0.85

Calls 1

normcaseMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…