--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityContext.py Mon Jun 08 20:08:27 2020 +0200 +++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Security/SecurityContext.py Tue Jun 09 20:10:59 2020 +0200 @@ -266,14 +266,14 @@ # tend to refer to things like True and False. This prevents them from # being re-assigned in Python 3. elif ( - sys.version_info >= (3, 0, 0) and + sys.version_info[0] >= 3 and isinstance(literal, ast.NameConstant) ): literalValue = str(literal.value) # Bytes are only part of the AST in Python 3 elif ( - sys.version_info >= (3, 0, 0) and + sys.version_info[0] >= 3 and isinstance(literal, ast.Bytes) ): literalValue = literal.s