FIX: propagate separator through to parsing

Otherwise it is parsed as a comma separated list.
This commit is contained in:
Thomas A Caswell 2018-11-02 15:45:39 -04:00
parent 4439ea2025
commit b723756c2d
No known key found for this signature in database
GPG key ID: BCD928050D713D75
2 changed files with 2 additions and 2 deletions

View file

@ -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):

View file

@ -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]")