diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2020-12-02 22:57:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-03-17 17:10:32 +0000 |
commit | 94d7378fa23583f7fd7aa92ace089443b27a5efe (patch) | |
tree | d0345be8d020b7cb5bf9bdcdbcb15ffee51236d5 /python | |
parent | c4f338b7e4ef068b516e80165cf5032815b0bb2d (diff) | |
download | samba-94d7378fa23583f7fd7aa92ace089443b27a5efe.tar.gz |
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>
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/dns_base.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/python/samba/tests/dns_base.py b/python/samba/tests/dns_base.py index a5c7c5eb982..5c0d6201b06 100644 --- a/python/samba/tests/dns_base.py +++ b/python/samba/tests/dns_base.py @@ -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) |