aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGeorgeFI2023-02-25 14:33:28 +0100
committerGeorgeFI2023-02-25 14:33:28 +0100
commit00558beaf63befabe723d471efef5ff149874024 (patch)
tree1d01e09da18e2575162f0265276d466522e4f477 /src
parent81f78accf96b3680a5f97e6475a5d6f8a051ddd0 (diff)
downloadsec-certs-00558beaf63befabe723d471efef5ff149874024.tar.gz
sec-certs-00558beaf63befabe723d471efef5ff149874024.tar.zst
sec-certs-00558beaf63befabe723d471efef5ff149874024.zip
refactor: Refactored match function
Diffstat (limited to 'src')
-rw-r--r--src/sec_certs/sample/cpe.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sec_certs/sample/cpe.py b/src/sec_certs/sample/cpe.py
index 64b80b5b..664e70e3 100644
--- a/src/sec_certs/sample/cpe.py
+++ b/src/sec_certs/sample/cpe.py
@@ -32,7 +32,7 @@ class CPEConfiguration(ComplexSerializableType):
For a given set of CPEs method returns boolean if the CPE configuration is
matched or not.
"""
- return self.platform in set_of_cpes and any([cpe for cpe in set_of_cpes])
+ return self.platform in set_of_cpes and any(list(set_of_cpes))
@dataclass(init=False)