From be67f9784b000965a106810d504c116ede68caa8 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Thu, 9 Oct 2014 14:58:48 -0500 Subject: [PATCH] Only initialize options.exclude if it is false-y Fixes #4 on GitLab --- flake8/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/engine.py b/flake8/engine.py index f2b7ce0..769d272 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -94,7 +94,7 @@ def get_style_guide(**kwargs): if options.exclude and not isinstance(options.exclude, list): options.exclude = pep8.normalize_paths(options.exclude) - else: + elif not options.exclude: options.exclude = [] # Add pattersn in EXTRA_EXCLUDE to the list of excluded patterns