Revert "Lint: W605 invalid escape sequence '\-'"
This reverts commit db9c6eecad
.
This commit is contained in:
parent
6213d39c42
commit
893e7a616c
|
@ -735,7 +735,7 @@ def vm_modify(domain, cfgfile, editor, restart):
|
||||||
for line in diff:
|
for line in diff:
|
||||||
if re.match('^[+]', line) is not None:
|
if re.match('^[+]', line) is not None:
|
||||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
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)
|
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||||
elif re.match('^[^]', line) is not None:
|
elif re.match('^[^]', line) is not None:
|
||||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||||
|
@ -3041,7 +3041,7 @@ def provisioner_userdata_modify(name, filename, editor):
|
||||||
for line in diff:
|
for line in diff:
|
||||||
if re.match('^[+]', line) is not None:
|
if re.match('^[+]', line) is not None:
|
||||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
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)
|
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||||
elif re.match('^[^]', line) is not None:
|
elif re.match('^[^]', line) is not None:
|
||||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||||
|
@ -3226,7 +3226,7 @@ def provisioner_script_modify(name, filename, editor):
|
||||||
for line in diff:
|
for line in diff:
|
||||||
if re.match('^[+]', line) is not None:
|
if re.match('^[+]', line) is not None:
|
||||||
click.echo(colorama.Fore.GREEN + line + colorama.Fore.RESET)
|
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)
|
click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)
|
||||||
elif re.match('^[^]', line) is not None:
|
elif re.match('^[^]', line) is not None:
|
||||||
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
click.echo(colorama.Fore.BLUE + line + colorama.Fore.RESET)
|
||||||
|
|
Loading…
Reference in New Issue