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

  • Participants
  • Parent commits 730506b

Comments (0)

Files changed (1)

File flake8/

 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'):
                     fullpath = os.path.join(dirpath, filename)
-                    if not skip_file(fullpath) and fullpath not in seen:
+                    if not skip_file(fullpath):
                         yield fullpath
-            if not skip_file(path) and path not in seen:
+            if not skip_file(path):
                 yield path