1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

pytests: dns_base: remove a py2 compat thing

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Douglas Bagnall 2020-12-02 22:57:48 +00:00 committed by Jeremy Allison
parent c4f338b7e4
commit 94d7378fa2

View File

@ -298,10 +298,7 @@ class DNSTKeyTest(DNSTest):
# so it can be modified
response_packet_list = [x if isinstance(x, int) else ord(x) for x in response_packet]
del response_packet_list[-tsig_record_len:]
if isinstance(response_packet_list[11], int):
response_packet_list[11] = 0
else:
response_packet_list[11] = chr(0)
response_packet_list[11] = 0
# convert modified list (of string char or int) to str/bytes
response_packet_wo_tsig = bytes(response_packet_list)