@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
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)
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