mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
Remove the now-unused set() in _get_python_files
This was left over from a previous patch and unused after adding the 'checked' set() to Flake8Command.run()
This commit is contained in:
parent
4a7b381fc0
commit
3bd3c01e35
1 changed files with 2 additions and 3 deletions
|
|
@ -37,7 +37,6 @@ def check_code(code, complexity=-1):
|
|||
|
||||
|
||||
def _get_python_files(paths):
|
||||
seen = set()
|
||||
for path in paths:
|
||||
if os.path.isdir(path):
|
||||
for dirpath, dirnames, filenames in os.walk(path):
|
||||
|
|
@ -45,11 +44,11 @@ def _get_python_files(paths):
|
|||
if not filename.endswith('.py'):
|
||||
continue
|
||||
fullpath = os.path.join(dirpath, filename)
|
||||
if not skip_file(fullpath) and fullpath not in seen:
|
||||
if not skip_file(fullpath):
|
||||
yield fullpath
|
||||
|
||||
else:
|
||||
if not skip_file(path) and path not in seen:
|
||||
if not skip_file(path):
|
||||
yield path
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue