]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python3: Remove Python 2–only call to decode()
authorJennifer Sutton <jennifersutton@catalyst.net.nz>
Tue, 3 Sep 2024 00:32:14 +0000 (12:32 +1200)
committerJo Sutton <jsutton@samba.org>
Mon, 26 May 2025 02:41:36 +0000 (02:41 +0000)
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>
python/samba/join.py

index 7b1fe84d448d6a0c85245de89b826a26c0ccba39..0b5a468e6e62010e48b5a10786a9aa5b3a6cac43 100644 (file)
@@ -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()