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

Method special_selector

Lib/glob.py:390–400  ·  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

388 return selector(part, parts)
389
390 def special_selector(self, part, parts):
391 """Returns a function that selects special children of the given path.
392 """
393 if parts:
394 part += self.sep
395 select_next = self.selector(parts)
396
397 def select_special(path, exists=False):
398 path = self.concat_path(path, part)
399 return select_next(path, exists)
400 return select_special
401
402 def literal_selector(self, part, parts):
403 """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