From: Douglas Bagnall Date: Tue, 11 Jun 2024 23:16:48 +0000 (+1200) Subject: py:emulate: remove py2 str/bytes workaround in traffic X-Git-Tag: tdb-1.4.11~376 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25e6d7c6a339f389cd13628e30b09a892e1a4144;p=thirdparty%2Fsamba.git py:emulate: remove py2 str/bytes workaround in traffic Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/emulate/traffic.py b/python/samba/emulate/traffic.py index 4811fe8bd08..bb32a778bb5 100644 --- a/python/samba/emulate/traffic.py +++ b/python/samba/emulate/traffic.py @@ -807,8 +807,7 @@ class ReplayContext(object): def get_authenticator(self): auth = self.machine_creds.new_client_authenticator() current = netr_Authenticator() - current.cred.data = [x if isinstance(x, int) else ord(x) - for x in auth["credential"]] + current.cred.data = list(auth["credential"]) current.timestamp = auth["timestamp"] subsequent = netr_Authenticator()