From 893e7a616cd94a83038f7e3d4eedfbd9b4462758 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 17:38:02 -0500 Subject: [PATCH] Revert "Lint: W605 invalid escape sequence '\-'" This reverts commit db9c6eecad28068b6694c374c4f0511b17fc2323. --- client-cli/pvc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client-cli/pvc.py b/client-cli/pvc.py index 1b580a6e..a634f29f 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -735,7 +735,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) @@ -3041,7 +3041,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) @@ -3226,7 +3226,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)