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

Function _get_sep

Lib/posixpath.py:43–47  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

41
42
43def _get_sep(path):
44 if isinstance(path, bytes):
45 return b'/'
46 else:
47 return '/'
48
49# Normalize the case of a pathname. Trivial in Posix, string.lower on Mac.
50# On MS-DOS this may also turn slashes into backslashes; however, other

Callers 6

isabsFunction · 0.85
joinFunction · 0.85
splitFunction · 0.85
basenameFunction · 0.85
dirnameFunction · 0.85
expanduserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…