From: Joseph Sutton Date: Fri, 24 Feb 2023 01:54:02 +0000 (+1300) Subject: samba-tool: Don't use invalid escape sequences X-Git-Tag: talloc-2.4.1~1524 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1312b2d1699e544cff4f3f7dccd9a02a5bd295fa;p=thirdparty%2Fsamba.git samba-tool: Don't use invalid escape sequences Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py index 9b00a9016c3..2f882cbf51c 100644 --- a/python/samba/netcmd/gpo.py +++ b/python/samba/netcmd/gpo.py @@ -1651,7 +1651,7 @@ class cmd_restore(cmd_create): entities_content = entities_file.read() # Do a basic regex test of the entities file format - if re.match('(\s*)+\s*\Z', + if re.match(r'(\s*)+\s*\Z', entities_content, flags=re.MULTILINE) is None: raise CommandError("Entities file does not appear to " "conform to format\n"