Consistent ordering of filenames

This commit is contained in:
Anthony Sottile 2018-06-11 12:49:45 -07:00
parent 507c327b1a
commit 5b6a5abae9
2 changed files with 11 additions and 11 deletions

View file

@ -38,14 +38,14 @@ def _hook_msg_start(hook, verbose):
def _filter_by_include_exclude(filenames, include, exclude):
include_re, exclude_re = re.compile(include), re.compile(exclude)
return {
return [
filename for filename in filenames
if (
include_re.search(filename) and
not exclude_re.search(filename) and
os.path.lexists(filename)
)
}
]
def _filter_by_types(filenames, types, exclude_types):