Fixing lint. Using a constant intead of looking for the condition in the string.

This commit is contained in:
Gareth J. Greenaway 2019-01-18 12:44:37 -08:00
parent a233dbc79a
commit 0bf468c357
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -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 = '"'