From: Joseph Sutton Date: Tue, 14 Mar 2023 22:31:43 +0000 (+1300) Subject: selftest: Don't use invalid escape sequences X-Git-Tag: talloc-2.4.1~1386 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfe759c1fd911eb475ed46fe5d66f5cf4eb9055c;p=thirdparty%2Fsamba.git selftest: Don't use invalid escape sequences Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/selftest/subunithelper.py b/selftest/subunithelper.py index 801149f8910..755a27d35d5 100644 --- a/selftest/subunithelper.py +++ b/selftest/subunithelper.py @@ -76,7 +76,7 @@ def parse_results(msg_ops, statistics, fh): elif command in VALID_RESULTS: msg_ops.control_msg(l) result = command - grp = re.match("(.*?)( \[)?([ \t]*)( multipart)?\n", arg) + grp = re.match(r"(.*?)( \[)?([ \t]*)( multipart)?\n", arg) (testname, hasreason) = (grp.group(1), grp.group(2)) if hasreason: reason = ""