MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _get_sep

Function _get_sep

tools/python-3.11.9-amd64/Lib/posixpath.py:41–45  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

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