Stop calling split on a list

--exclude-from-doctests is also parsed by flake8 for us
This commit is contained in:
Ian Cordasco 2016-01-19 07:46:41 -06:00
parent 15d7f7679c
commit 5a1e6943d8

View file

@ -111,7 +111,7 @@ class FlakesChecker(pyflakes.checker.Checker):
cls.include_in_doctest = utils.normalize_paths(included_files) cls.include_in_doctest = utils.normalize_paths(included_files)
excluded_files = [] excluded_files = []
for excluded_file in options.exclude_from_doctest.split(','): for excluded_file in options.exclude_from_doctest:
if excluded_file == '': if excluded_file == '':
continue continue
if not excluded_file.startswith((os.sep, './', '~/')): if not excluded_file.startswith((os.sep, './', '~/')):