1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-16 20:59:12 +03:00

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 <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Joseph Sutton
2022-04-28 20:31:50 +12:00
committed by Andreas Schneider
parent 45f2e3631e
commit 5045382c6d
4 changed files with 6 additions and 6 deletions

View File

@ -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