From b5633462bfe7fc1e5e684680bb33fed5e8267d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Tue, 8 Oct 2024 14:10:50 +0200 Subject: [PATCH] Remove unused isctest/kasp code --- bin/tests/system/isctest/kasp.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/tests/system/isctest/kasp.py b/bin/tests/system/isctest/kasp.py index a2bc24d926..2160ce1e0d 100644 --- a/bin/tests/system/isctest/kasp.py +++ b/bin/tests/system/isctest/kasp.py @@ -26,12 +26,7 @@ import isctest.log DEFAULT_TTL = 300 -def _save_response(response, fname): - with open(fname, "w", encoding="utf-8") as file: - file.write(response.to_text()) - - -def _query(server, qname, qtype, outfile=None): +def _query(server, qname, qtype): query = dns.message.make_query(qname, qtype, use_edns=True, want_dnssec=True) try: response = dns.query.tcp(query, server.ip, port=server.ports.dns, timeout=3) @@ -39,9 +34,6 @@ def _query(server, qname, qtype, outfile=None): isctest.log.debug(f"query timeout for query {qname} {qtype} to {server.ip}") return None - if outfile is not None: - _save_response(response, outfile) - return response