]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
lint
authorBob Halley <halley@dnspython.org>
Sat, 8 Jul 2023 20:00:40 +0000 (13:00 -0700)
committerBob Halley <halley@dnspython.org>
Sat, 8 Jul 2023 20:00:40 +0000 (13:00 -0700)
dns/query.py
dns/win32util.py

index b9f98f737156edd48159e29c3b5bc4e15b897a2f..864c2e62670db817c7d136fb885d4fba3dc185e4 100644 (file)
@@ -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
index f6b1c6bddaaee855cdcfbc2ec1f8b3f8b78ada42..b2ca61dae9a0a48bdf7ae73720b4154891cd46b2 100644 (file)
@@ -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