Skip to contentSkip to conversation

cve-check: Don't use f-strings

PATCH New Ernst Sjöstrand 1 participant 1 message Aug 12, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cve-check: Don't use f-strings

Since we're keeping cve-check aligned between the active branches, and dunfell is supported on Python 3.5, we can't use f-strings.

---
 meta/lib/oe/cve_check.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oe/cve_check.py +1 -1
index aa06497727..f40f16d7ab 100644
@@ -143,7 +143,7 @@ def get_cpe_ids(cve_product, version):
         else:
             vendor = "*"
 
-        cpe_id = f'cpe:2.3:a:{vendor}:{product}:{version}:*:*:*:*:*:*:*'
+        cpe_id = 'cpe:2.3:a:{}:{}:{}:*:*:*:*:*:*:*'.format(vendor, product, version)
         cpe_ids.append(cpe_id)
 
     return cpe_ids
Signature · 1 line
2.34.1