mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Fixing lint. Using a constant intead of looking for the condition in the string.
This commit is contained in:
parent
a233dbc79a
commit
0bf468c357
@ -333,7 +333,7 @@ def build_whitespace_split_regex(text):
|
||||
lexer = shlex.shlex(text)
|
||||
lexer.whitespace_split = True
|
||||
lexer.commenters = ''
|
||||
if "'\"":
|
||||
if r"'\"" in text:
|
||||
lexer.quotes = ''
|
||||
elif '\'' in text:
|
||||
lexer.quotes = '"'
|
||||
|
Loading…
Reference in New Issue
Block a user