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:
committed by
Andreas Schneider
parent
45f2e3631e
commit
5045382c6d
@ -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
|
||||
|
Reference in New Issue
Block a user