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

Method special_selector

Lib/glob.py:402–412  ·  view source on GitHub ↗

Returns a function that selects special children of the given path.

(self, part, parts)

Source from the content-addressed store, hash-verified

400 return selector(part, parts)
401
402 def special_selector(self, part, parts):
403 """Returns a function that selects special children of the given path.
404 """
405 if parts:
406 part += self.sep
407 select_next = self.selector(parts)
408
409 def select_special(path, exists=False):
410 path = self.concat_path(path, part)
411 return select_next(path, exists)
412 return select_special
413
414 def literal_selector(self, part, parts):
415 """Returns a function that selects a literal descendant of a path.

Callers

nothing calls this directly

Calls 1

selectorMethod · 0.95

Tested by

no test coverage detected