summaryrefslogtreecommitdiff
path: root/python/samba/join.py
diff options
context:
space:
mode:
authorJennifer Sutton <jennifersutton@catalyst.net.nz>2024-09-03 12:32:14 +1200
committerJo Sutton <jsutton@samba.org>2025-05-26 02:41:36 +0000
commite40e7fc6bf0f3dab9f4942741dac6ce188f8535c (patch)
treee139261960bbf13c4acd899ee7d6817d9d6f942e /python/samba/join.py
parent44548de57a3f2932bb6546945cdb6f2212d3c4c2 (diff)
downloadsamba-e40e7fc6bf0f3dab9f4942741dac6ce188f8535c.tar.gz
samba-e40e7fc6bf0f3dab9f4942741dac6ce188f8535c.tar.bz2
samba-e40e7fc6bf0f3dab9f4942741dac6ce188f8535c.zip
python3: Remove Python 2–only call to decode()
AttributeError: 'str' object has no attribute 'decode' BUG: https://bugzilla.samba.org/show_bug.cgi?id=15852 Signed-off-by: Jennifer Sutton <jennifersutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python/samba/join.py')
-rw-r--r--python/samba/join.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/join.py b/python/samba/join.py
index 7b1fe84d448..0b5a468e6e6 100644
--- a/python/samba/join.py
+++ b/python/samba/join.py
@@ -1389,7 +1389,7 @@ class DCJoinContext(object):
objectAttr = lsa.ObjectAttribute()
objectAttr.sec_qos = lsa.QosInfo()
- pol_handle = lsaconn.OpenPolicy2(''.decode('utf-8'),
+ pol_handle = lsaconn.OpenPolicy2('',
objectAttr, security.SEC_FLAG_MAXIMUM_ALLOWED)
info = lsa.TrustDomainInfoInfoEx()