From 3b6bfc2cad5107c33ca57841b5a374dbca6f9bf1 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sat, 8 Jul 2023 13:00:40 -0700 Subject: [PATCH] lint --- dns/query.py | 2 +- dns/win32util.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dns/query.py b/dns/query.py index b9f98f73..864c2e62 100644 --- a/dns/query.py +++ b/dns/query.py @@ -176,7 +176,7 @@ except ImportError: # pragma: no cover @classmethod def create_default_context(cls, *args, **kwargs): - raise Exception("no ssl support") + raise Exception("no ssl support") # pylint: disable=broad-exception-raised # Function used to create a socket. Can be overridden if needed in special diff --git a/dns/win32util.py b/dns/win32util.py index f6b1c6bd..b2ca61da 100644 --- a/dns/win32util.py +++ b/dns/win32util.py @@ -206,7 +206,7 @@ if sys.platform == "win32": lm = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE) try: tcp_params = winreg.OpenKey( - lm, r"SYSTEM\CurrentControlSet" r"\Services\Tcpip\Parameters" + lm, r"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" ) try: self._config_fromkey(tcp_params, True) @@ -214,9 +214,7 @@ if sys.platform == "win32": tcp_params.Close() interfaces = winreg.OpenKey( lm, - r"SYSTEM\CurrentControlSet" - r"\Services\Tcpip\Parameters" - r"\Interfaces", + r"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces", ) try: i = 0 -- 2.47.3