Commits

Peter Teichman committed bc84ad8

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()

Comments (0)

Files changed (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):
                     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