diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/EricNetwork/EricSslUtilities.py --- a/src/eric7/EricNetwork/EricSslUtilities.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/EricNetwork/EricSslUtilities.py Wed Jul 13 14:55:47 2022 +0200 @@ -13,18 +13,21 @@ Function to initialize some global SSL stuff. """ blacklist = [ - "SRP-AES-256-CBC-SHA", # open to MitM - "SRP-AES-128-CBC-SHA", # open to MitM + "SRP-AES-256-CBC-SHA", # open to MitM + "SRP-AES-128-CBC-SHA", # open to MitM ] - + try: from PyQt6.QtNetwork import QSslConfiguration except ImportError: # no SSL available, so there is nothing to initialize return - - strongCiphers = [c for c in QSslConfiguration.supportedCiphers() - if c.name() not in blacklist and c.usedBits() >= 128] + + strongCiphers = [ + c + for c in QSslConfiguration.supportedCiphers() + if c.name() not in blacklist and c.usedBits() >= 128 + ] defaultSslConfiguration = QSslConfiguration.defaultConfiguration() defaultSslConfiguration.setCiphers(strongCiphers) QSslConfiguration.setDefaultConfiguration(defaultSslConfiguration)