diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-04-28 20:31:50 +1200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-06-14 07:21:29 +0000 |
commit | 5045382c6dd04b1bae0eaaae823be908213ff079 (patch) | |
tree | d26c9996c2676ce539dc360043f37595994ceab1 /python | |
parent | 45f2e3631e1424f99915a01bdf4808189bd8a6d7 (diff) | |
download | samba-5045382c6dd04b1bae0eaaae823be908213ff079.tar.gz |
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/netcmd/ldapcmp.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |