mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 11:56:52 +00:00
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:
commit
0d7247082e
2 changed files with 12 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue