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

Function _is_excluded

Tools/c-analyzer/c_common/fsutil.py:195–207  ·  view source on GitHub ↗
(filename, exclude, include)

Source from the content-addressed store, hash-verified

193
194
195def _is_excluded(filename, exclude, include):
196 if include:
197 for included in include:
198 if match_glob(filename, included):
199 return False
200 return True
201 elif exclude:
202 for excluded in exclude:
203 if match_glob(filename, excluded):
204 return True
205 return False
206 else:
207 return False
208
209
210def _walk_tree(root, *,

Callers 1

checkFunction · 0.85

Calls 1

match_globFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…