Lines Matching refs:sep
19 sep = '/'
36 "curdir","pardir","sep","pathsep","defpath","altsep","extsep",
63 sep = _get_sep(s)
64 return s.startswith(sep)
77 sep = _get_sep(a)
81 path[:0] + sep #23780: Ensure compatible data type even if p is null.
83 if b.startswith(sep):
85 elif not path or path.endswith(sep):
88 path += sep + b
104 sep = _get_sep(p)
105 i = p.rfind(sep) + 1
107 if head and head != sep*len(head):
108 head = head.rstrip(sep)
120 sep = b'/'
123 sep = '/'
125 return genericpath._splitext(p, sep, None, extsep)
143 sep = _get_sep(p)
144 i = p.rfind(sep) + 1
153 sep = _get_sep(p)
154 i = p.rfind(sep) + 1
156 if head and head != sep*len(head):
157 head = head.rstrip(sep)
239 sep = _get_sep(path)
240 i = path.find(sep, 1)
354 sep = b'/'
359 sep = '/'
365 initial_slashes = path.startswith(sep)
370 path.startswith(sep*2) and not path.startswith(sep*3)):
372 comps = path.split(sep)
383 path = sep.join(comps)
385 path = sep*initial_slashes + path
423 sep = b'/'
427 sep = '/'
433 path = sep
436 name, _, rest = rest.partition(sep)
495 sep = b'/'
499 sep = '/'
508 start_list = [x for x in abspath(start).split(sep) if x]
509 path_list = [x for x in abspath(path).split(sep) if x]
535 sep = b'/'
538 sep = '/'
542 split_paths = [path.split(sep) for path in paths]
545 isabs, = set(p[:1] == sep for p in paths)
558 prefix = sep if isabs else sep[:0]
559 return prefix + sep.join(common)