Only initialize options.exclude if it is false-y

Fixes #4 on GitLab
This commit is contained in:
Ian Cordasco 2014-10-09 14:58:48 -05:00
parent 69ed788443
commit be67f9784b

View file

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