From: Jennifer Sutton Date: Tue, 3 Sep 2024 00:32:14 +0000 (+1200) Subject: python3: Remove Python 2–only call to decode() X-Git-Tag: tevent-0.17.0~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e40e7fc6bf0f3dab9f4942741dac6ce188f8535c;p=thirdparty%2Fsamba.git 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 Reviewed-by: Douglas Bagnall --- 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()