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:
Peter Teichman 2012-09-17 07:32:11 -04:00
parent 4a7b381fc0
commit 3bd3c01e35

View file

@ -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