mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
FIX: propagate separator through to parsing
Otherwise it is parsed as a comma separated list.
This commit is contained in:
parent
4439ea2025
commit
b723756c2d
2 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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]")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue