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

Method compile

Lib/glob.py:381–383  ·  view source on GitHub ↗
(self, pat, altsep=None)

Source from the content-addressed store, hash-verified

379 # High-level methods
380
381 def compile(self, pat, altsep=None):
382 seps = (self.sep, altsep) if altsep else self.sep
383 return _compile_pattern(pat, seps, self.case_sensitive, self.recursive)
384
385 def selector(self, parts):
386 """Returns a function that selects from a given path, walking and

Callers 4

wildcard_selectorMethod · 0.95
recursive_selectorMethod · 0.95
glob.pyFile · 0.45
_compile_patternFunction · 0.45

Calls 1

_compile_patternFunction · 0.70

Tested by

no test coverage detected