MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / has_magic

Function has_magic

tools/python-3.11.9-amd64/Lib/glob.py:223–228  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

221magic_check_bytes = re.compile(b'([*?[])')
222
223def has_magic(s):
224 if isinstance(s, bytes):
225 match = magic_check_bytes.search(s)
226 else:
227 match = magic_check.search(s)
228 return match is not None
229
230def _ishidden(path):
231 return path[0] in ('.', b'.'[0])

Callers 1

_iglobFunction · 0.70

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected