diff --git a/flake8/__init__.py b/flake8/__init__.py index 2f5574e..4ce9a3b 100644 --- a/flake8/__init__.py +++ b/flake8/__init__.py @@ -120,7 +120,7 @@ def main(): warnings += checkPath(fullpath) warnings += pep8.input_file(fullpath) else: - if skip_file(filename): + if skip_file(arg): continue warnings += checkPath(arg) warnings += pep8.input_file(arg)