mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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:
parent
c4f338b7e4
commit
94d7378fa2
@ -298,10 +298,7 @@ class DNSTKeyTest(DNSTest):
|
|||||||
# so it can be modified
|
# so it can be modified
|
||||||
response_packet_list = [x if isinstance(x, int) else ord(x) for x in response_packet]
|
response_packet_list = [x if isinstance(x, int) else ord(x) for x in response_packet]
|
||||||
del response_packet_list[-tsig_record_len:]
|
del response_packet_list[-tsig_record_len:]
|
||||||
if isinstance(response_packet_list[11], int):
|
|
||||||
response_packet_list[11] = 0
|
response_packet_list[11] = 0
|
||||||
else:
|
|
||||||
response_packet_list[11] = chr(0)
|
|
||||||
|
|
||||||
# convert modified list (of string char or int) to str/bytes
|
# convert modified list (of string char or int) to str/bytes
|
||||||
response_packet_wo_tsig = bytes(response_packet_list)
|
response_packet_wo_tsig = bytes(response_packet_list)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user