MCPcopy Index your code
hub / github.com/RustPython/RustPython / 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
b64encodeFunction · 0.45
b64decodeFunction · 0.45
urlsafe_b64encodeFunction · 0.45
urlsafe_b64decodeFunction · 0.45
_b32decodeFunction · 0.45
b16decodeFunction · 0.45
z85encodeFunction · 0.45
z85decodeFunction · 0.45
__init__Method · 0.45
quoteFunction · 0.45
_init_oldMethod · 0.45

Calls 3

extendMethod · 0.95
match_dirsMethod · 0.95
translate_coreMethod · 0.95

Tested by 9

test_bug828737Method · 0.36
test_translateMethod · 0.36
test_copiedMethod · 0.36
test_translateMethod · 0.36
test_translateMethod · 0.36
fnMethod · 0.36