--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/insecureSslTls.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/Checks/insecureSslTls.py Sun Apr 11 18:45:10 2021 +0200 @@ -138,16 +138,18 @@ @param config dictionary with configuration data @type dict """ - if context.callFunctionNameQual == 'ssl.wrap_socket': - if context.checkCallArgValue('ssl_version') is None: - # checkCallArgValue() returns False if the argument is found - # but does not match the supplied value (or the default None). - # It returns None if the argument passed doesn't exist. This - # tests for that (ssl_version is not specified). - reportError( - context.node.lineno - 1, - context.node.col_offset, - "S504", - "L", - "M", - ) + if ( + context.callFunctionNameQual == 'ssl.wrap_socket' and + context.checkCallArgValue('ssl_version') is None + ): + # checkCallArgValue() returns False if the argument is found + # but does not match the supplied value (or the default None). + # It returns None if the argument passed doesn't exist. This + # tests for that (ssl_version is not specified). + reportError( + context.node.lineno - 1, + context.node.col_offset, + "S504", + "L", + "M", + )