Merge branch 'master' into 'master'

Remove filter by filename in utils.filenames_from

Closes #382

See merge request pycqa/flake8!311
This commit is contained in:
Anthony Sottile 2019-07-08 20:11:25 +00:00
commit 0d7247082e
2 changed files with 12 additions and 3 deletions

View file

@ -379,9 +379,8 @@ def filenames_from(arg, predicate=None):
for filename in files:
joined = os.path.join(root, filename)
if predicate(joined) or predicate(filename):
continue
yield joined
if not predicate(joined):
yield joined
else:
yield arg