summaryrefslogtreecommitdiff
path: root/python/samba/netcmd/dsacl.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/netcmd/dsacl.py')
-rw-r--r--python/samba/netcmd/dsacl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/netcmd/dsacl.py b/python/samba/netcmd/dsacl.py
index 92570760d40..d3b8b5f554e 100644
--- a/python/samba/netcmd/dsacl.py
+++ b/python/samba/netcmd/dsacl.py
@@ -114,11 +114,11 @@ class cmd_dsacl_set(Command):
"""Add new ace explicitly."""
desc = self.read_descriptor(samdb, object_dn)
new_ace = security.descriptor.from_sddl("D:" + new_ace,self.get_domain_sid(samdb))
- new_ace_list = re.findall("\(.*?\)",new_ace.as_sddl())
+ new_ace_list = re.findall(r"\(.*?\)",new_ace.as_sddl())
for new_ace in new_ace_list:
desc_sddl = desc.as_sddl(self.get_domain_sid(samdb))
# TODO add bindings for descriptor manipulation and get rid of this
- desc_aces = re.findall("\(.*?\)", desc_sddl)
+ desc_aces = re.findall(r"\(.*?\)", desc_sddl)
for ace in desc_aces:
if ("ID" in ace):
desc_sddl = desc_sddl.replace(ace, "")