mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-15 16:49:52 +00:00
Stop calling split on a list
--exclude-from-doctests is also parsed by flake8 for us
This commit is contained in:
parent
15d7f7679c
commit
5a1e6943d8
1 changed files with 1 additions and 1 deletions
|
|
@ -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, './', '~/')):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue