MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / file_matches

Function file_matches

test/test_pythonlib.py:155–163  ·  view source on GitHub ↗
(files, root, basenames, patterns)

Source from the content-addressed store, hash-verified

153
154def do_tests(src_dir, obj_patterns, target_dir, opts):
155 def file_matches(files, root, basenames, patterns):
156 files.extend(
157 [
158 os.path.normpath(os.path.join(root, n))
159 for n in basenames
160 for pat in patterns
161 if fnmatch(n, pat)
162 ]
163 )
164
165 files = []
166 # Change directories so use relative rather than

Callers 1

do_testsFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected