mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue