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

Function _get_sep

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

Source from the content-addressed store, hash-verified

40
41
42def _get_sep(path):
43 if isinstance(path, bytes):
44 return b'/'
45 else:
46 return '/'
47
48# Normalize the case of a pathname. Trivial in Posix, string.lower on Mac.
49# 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 1

isinstanceFunction · 0.85

Tested by

no test coverage detected