Lint: W605 invalid escape sequence '\-'
This commit is contained in:
parent
f787c4cb14
commit
db9c6eecad
|
@ -712,7 +712,7 @@ def vm_modify(domain, cfgfile, editor, restart):
|
|||
for line in diff:
|
||||
if re.match('^[+]', line) is not None:
|
||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
||||
elif re.match('^\-', line) is not None:
|
||||
elif re.match('^[-]', line) is not None:
|
||||
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||
elif re.match('^[^]', line) is not None:
|
||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||
|
@ -2919,7 +2919,7 @@ def provisioner_userdata_modify(name, filename, editor):
|
|||
for line in diff:
|
||||
if re.match('^[+]', line) is not None:
|
||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
||||
elif re.match('^\-', line) is not None:
|
||||
elif re.match('^[-]', line) is not None:
|
||||
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||
elif re.match('^[^]', line) is not None:
|
||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||
|
@ -3098,7 +3098,7 @@ def provisioner_script_modify(name, filename, editor):
|
|||
for line in diff:
|
||||
if re.match('^[+]', line) is not None:
|
||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
||||
elif re.match('^\-', line) is not None:
|
||||
elif re.match('^[-]', line) is not None:
|
||||
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||
elif re.match('^[^]', line) is not None:
|
||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||
|
|
Loading…
Reference in New Issue