MCPcopy Index your code
hub / github.com/RustPython/RustPython / iter_files

Function iter_files

scripts/check_redundant_patches.py:27–35  ·  view source on GitHub ↗
(patterns: list[str])

Source from the content-addressed store, hash-verified

25
26
27def iter_files(patterns: list[str]):
28 seen = set()
29 for pattern in set(patterns):
30 matches = glob.glob(pattern, recursive=True)
31 for path in matches:
32 if path in seen:
33 continue
34 seen.add(path)
35 yield path
36
37
38def main(patterns: list[str]):

Callers 1

mainFunction · 0.85

Calls 3

setFunction · 0.85
globMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected