From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Tue, 18 Nov 2025 13:29:37 +0000 (-0500) Subject: Remove unused assignment X-Git-Tag: rec-5.4.0-alpha1~64^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2872025bffb874867bfcf883d1b4359fa9f76cbe;p=thirdparty%2Fpdns.git Remove unused assignment Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/contrib/ProtobufLogger.py b/contrib/ProtobufLogger.py index 04101adcf8..acdca7ac55 100644 --- a/contrib/ProtobufLogger.py +++ b/contrib/ProtobufLogger.py @@ -427,8 +427,6 @@ class PDNSPBListener(object): if __name__ == "__main__": - oturl = None - printjson = False parser = argparse.ArgumentParser( prog='ProtobufLogger', description='Listens for and prints dnsmessage.proto messages and optionally posts OT Trace data to a collector URL', diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index 9e8ec5c11f..50c5d245c5 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -280,12 +280,12 @@ def finalize_server(): print("Waiting for webserver port to become available...") available = False time.sleep(1) -for try_number in range(0, 10): +for _ in range(0, 10): try: if daemon == 'authoritative': - res = requests.get('http://127.0.0.1:%s/' % WEBPORT) + requests.get('http://127.0.0.1:%s/' % WEBPORT) else: - res = requests.get('https://127.0.0.1:%s/' % WEBPORT, verify='ca.pem') + requests.get('https://127.0.0.1:%s/' % WEBPORT, verify='ca.pem') available = True break except HTTPError as http_err: diff --git a/regression-tests.recursor-dnssec/test_Protobuf.py b/regression-tests.recursor-dnssec/test_Protobuf.py index 3cc7c71963..e9e4553945 100644 --- a/regression-tests.recursor-dnssec/test_Protobuf.py +++ b/regression-tests.recursor-dnssec/test_Protobuf.py @@ -14,11 +14,6 @@ try: except ImportError: from Queue import Queue -try: - range = xrange -except NameError: - pass - from recursortests import RecursorTest def ProtobufConnectionHandler(queue, conn): diff --git a/regression-tests.recursor-dnssec/test_RecDnstap.py b/regression-tests.recursor-dnssec/test_RecDnstap.py index ab01a83798..0a905ad3af 100644 --- a/regression-tests.recursor-dnssec/test_RecDnstap.py +++ b/regression-tests.recursor-dnssec/test_RecDnstap.py @@ -22,11 +22,6 @@ try: except ImportError: from Queue import Queue -try: - range = xrange -except NameError: - pass - def checkDnstapBase(testinstance, dnstap, protocol, initiator, responder, response_port=53): testinstance.assertTrue(dnstap)