Skip to content

Commit

Permalink
Ignore blank strings (i.e. empty, or filled with spaces only)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno P. Kinoshita committed Jun 25, 2019
1 parent 20eedc3 commit 0024e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cylc/flow/parsec/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def strip_and_unquote_list(cls, keys, value):
lexer.whitespace_split = False
lexer.whitespace = "\t\n\r"
lexer.wordchars += " "
values = [t.strip() for t in lexer if t != ","]
values = [t.strip() for t in lexer if t != "," and t.strip()]
else:
# unquoted values (may contain internal quoted strings with list
# delimiters inside 'em!)
Expand Down

0 comments on commit 0024e25

Please sign in to comment.