Ignore W1401 (anomalous-backslash-in-string)

This commit is contained in:
Robin Björklin 2016-12-05 13:41:47 +01:00
parent 2e929a5ecc
commit 5d0454a7ca

View file

@ -170,7 +170,7 @@ def ext_pillar(minion_id,
if minion_id not in minions:
return {}
root_re = re.compile('root=(\S*)')
root_re = re.compile('root=(\S*)') # pylint: disable=W1401
match = root_re.search(temp)
if match:
opts['root'] = match.group(1)
@ -178,7 +178,7 @@ def ext_pillar(minion_id,
else:
opts['root'] = ""
profile_re = re.compile('(?:profile=)?(\S+)')
profile_re = re.compile('(?:profile=)?(\S+)') # pylint: disable=W1401
match = profile_re.search(temp)
if match:
opts['profile'] = match.group(1)