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

Method fn

Lib/test/test_glob.py:429–430  ·  view source on GitHub ↗
(pat)

Source from the content-addressed store, hash-verified

427
428 def test_translate(self):
429 def fn(pat):
430 return glob.translate(pat, seps='/')
431 self.assertEqual(fn('foo'), r'(?s:foo)\z')
432 self.assertEqual(fn('foo/bar'), r'(?s:foo/bar)\z')
433 self.assertEqual(fn('*'), r'(?s:[^/.][^/]*)\z')

Callers 2

runMethod · 0.45
_process_workerFunction · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected