Skip to content

Commit

Permalink
Support for escape in list sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 4, 2020
1 parent cdef6dc commit 79385ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quorum/util.py
Expand Up @@ -80,7 +80,7 @@
number way of representing the same information """

CASTERS = {
list : lambda v: [y for y in itertools.chain(*[x.split(",") for x in v])],
list : lambda v: [y for y in itertools.chain(*[split_unescape(x, ",").split(",") for x in v])],
bool : lambda v: v if isinstance(v, bool) else\
not v in ("", "0", "false", "False")
}
Expand Down

0 comments on commit 79385ca

Please sign in to comment.