From 5a1e6943d8209b72cc697295f06f1219ba59d2c0 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 19 Jan 2016 07:46:41 -0600 Subject: [PATCH] Stop calling split on a list --exclude-from-doctests is also parsed by flake8 for us --- flake8/plugins/pyflakes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/plugins/pyflakes.py b/flake8/plugins/pyflakes.py index d787344..7f6107a 100644 --- a/flake8/plugins/pyflakes.py +++ b/flake8/plugins/pyflakes.py @@ -111,7 +111,7 @@ class FlakesChecker(pyflakes.checker.Checker): cls.include_in_doctest = utils.normalize_paths(included_files) excluded_files = [] - for excluded_file in options.exclude_from_doctest.split(','): + for excluded_file in options.exclude_from_doctest: if excluded_file == '': continue if not excluded_file.startswith((os.sep, './', '~/')):