dea627097d8f4fbfdbb4ea48b282be2a4d5a60ce,src/python/pants/source/filespec.py,,globs_matches,#Any#Any#Any#,49
Before Change
regex = re.compile(glob_to_regex(pattern))
for path in paths:
if regex.match(path) and not excluded(path):
return True
return False
def matches_filespec(path, spec):
After Change
def globs_matches(paths, patterns, exclude_patterns):
path_globs = PathGlobs(include=patterns, exclude=exclude_patterns)
return Native().match_path_globs(path_globs, paths)
def matches_filespec(path, spec):
return any_matches_filespec([path], spec)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pantsbuild/pants
Commit Name: dea627097d8f4fbfdbb4ea48b282be2a4d5a60ce
Time: 2019-03-01
Author: stuhood@twitter.com
File Name: src/python/pants/source/filespec.py
Class Name:
Method Name: globs_matches
Project Name: pantsbuild/pants
Commit Name: 4f5a7567de07131a65b1b9e0a0912730aa225e5f
Time: 2018-06-06
Author: dawagner@gmail.com
File Name: src/python/pants/engine/legacy/structs.py
Class Name: BaseGlobs
Method Name: to_path_globs
Project Name: pantsbuild/pants
Commit Name: 4f5a7567de07131a65b1b9e0a0912730aa225e5f
Time: 2018-06-06
Author: dawagner@gmail.com
File Name: tests/python/pants_test/engine/examples/sources.py
Class Name: Sources
Method Name: path_globs