From d37e5a0c0bfe91e680124d4eeca00763a4a2c48e Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 7 Nov 2020 17:38:03 -0500 Subject: [PATCH] Revert "Lint: W605 invalid escape sequence '\+'" This reverts commit f787c4cb143113e84940f8c39d7ff5fe87582690. --- 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 a634f29f..4135859e 100755 --- a/client-cli/pvc.py +++ b/client-cli/pvc.py @@ -733,7 +733,7 @@ def vm_modify(domain, cfgfile, editor, restart): click.echo('') diff = list(difflib.unified_diff(current_vm_cfgfile.split('\n'), new_vm_cfgfile.split('\n'), fromfile='current', tofile='modified', fromfiledate='', tofiledate='', n=3, lineterm='')) 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) elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET) @@ -3039,7 +3039,7 @@ def provisioner_userdata_modify(name, filename, editor): click.echo('') diff = list(difflib.unified_diff(current_userdata.split('\n'), new_userdata.split('\n'), fromfile='current', tofile='modified', fromfiledate='', tofiledate='', n=3, lineterm='')) 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) elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET) @@ -3224,7 +3224,7 @@ def provisioner_script_modify(name, filename, editor): click.echo('') diff = list(difflib.unified_diff(current_script.split('\n'), new_script.split('\n'), fromfile='current', tofile='modified', fromfiledate='', tofiledate='', n=3, lineterm='')) 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) elif re.match('^\-', line) is not None: click.echo(colorama.Fore.RED + line + colorama.Fore.RESET)