From b723756c2d6c42524937a41cf926a31f8cb53383 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 2 Nov 2018 15:45:39 -0400 Subject: [PATCH] FIX: propagate separator through to parsing Otherwise it is parsed as a comma separated list. --- src/flake8/options/manager.py | 2 +- src/flake8/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flake8/options/manager.py b/src/flake8/options/manager.py index 7be4315..f1c8209 100644 --- a/src/flake8/options/manager.py +++ b/src/flake8/options/manager.py @@ -152,7 +152,7 @@ class Option(object): normalize = utils.normalize_paths return normalize(value, *normalize_args) elif self.comma_separated_list: - return utils.parse_comma_separated_list(value) + return utils.parse_comma_separated_list(value, self.separator) return value def normalize_from_setuptools(self, value): diff --git a/src/flake8/utils.py b/src/flake8/utils.py index 68627af..a44d2ee 100644 --- a/src/flake8/utils.py +++ b/src/flake8/utils.py @@ -11,7 +11,7 @@ import tokenize DIFF_HUNK_REGEXP = re.compile(r"^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$") COMMA_SEPARATED_LIST_RE = re.compile(r"[,\s]") -NEWLINE_SEPARATED_LIST_RE = re.compile(r"[\s]") +NEWLINE_SEPARATED_LIST_RE = re.compile(r"[\n]") LOCAL_PLUGIN_LIST_RE = re.compile(r"[,\t\n\r\f\v]")