From 5045382c6dd04b1bae0eaaae823be908213ff079 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 28 Apr 2022 20:31:50 +1200 Subject: python: Don't use deprecated escape sequences Certain escape sequences are not valid in Python string literals, and will eventually result in a SyntaxError. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider --- python/samba/netcmd/ldapcmp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/samba/netcmd/ldapcmp.py b/python/samba/netcmd/ldapcmp.py index 762047c467b..dddd5a894be 100644 --- a/python/samba/netcmd/ldapcmp.py +++ b/python/samba/netcmd/ldapcmp.py @@ -279,7 +279,7 @@ class Descriptor(object): res = re.search(r"D:(.*?)(\(.*\))", self.sddl).group(2) except AttributeError: return [] - return re.findall("(\(.*?\))", res) + return re.findall(r"(\(.*?\))", res) def fix_sid(self, ace): res = "%s" % ace -- cgit v1.2.3