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

Method translate

Lib/zipfile/_path/glob.py:26–30  ·  view source on GitHub ↗

Given a glob pattern, produce a regex that matches it.

(self, pattern)

Source from the content-addressed store, hash-verified

24 self.seps = seps
25
26 def translate(self, pattern):
27 """
28 Given a glob pattern, produce a regex that matches it.
29 """
30 return self.extend(self.match_dirs(self.translate_core(pattern)))
31
32 def extend(self, pattern):
33 r"""

Callers 15

globMethod · 0.95
b64decodeFunction · 0.45
urlsafe_b64decodeFunction · 0.45
b32decodeFunction · 0.45
b16decodeFunction · 0.45
__init__Method · 0.45
quoteFunction · 0.45
_platformFunction · 0.45
_init_oldMethod · 0.45
_compute_digest_fallbackFunction · 0.45
_read_directoryFunction · 0.45
_munge_whitespaceMethod · 0.45

Calls 3

extendMethod · 0.95
match_dirsMethod · 0.95
translate_coreMethod · 0.95

Tested by 1

test_transMethod · 0.36