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

Function has_magic

Lib/glob.py:245–250  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

243magic_check_bytes = re.compile(b'([*?[])')
244
245def has_magic(s):
246 if isinstance(s, bytes):
247 match = magic_check_bytes.search(s)
248 else:
249 match = magic_check.search(s)
250 return match is not None
251
252def _ishidden(path):
253 return path[0] in ('.', b'.'[0])

Callers 1

_iglobFunction · 0.85

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…