From: Bob Halley Date: Sat, 8 Jul 2023 20:00:40 +0000 (-0700) Subject: lint X-Git-Tag: v2.5.0rc1~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b6bfc2cad5107c33ca57841b5a374dbca6f9bf1;p=thirdparty%2Fdnspython.git lint --- 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