瀏覽代碼

build,json: fix compatibility with Python 3.5

The f-string feature was introduced in Python 3.6. As Buildbots may run
on Debian 9, which comes per default with Python 3.5, this would cause
an issue. Instead of f-strings use the *legacy* `.format()` function.

Signed-off-by: Paul Spooren <[email protected]>
Paul Spooren 5 年之前
父節點
當前提交
5b8b42c78b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/json_overview_image_info.py

+ 1 - 1
scripts/json_overview_image_info.py

@@ -38,7 +38,7 @@ if output:
             "make",
             "--no-print-directory",
             "-C",
-            f"target/linux/{output['target'].split('/')[0]}",
+            "target/linux/{}".format(output['target'].split('/')[0]),
             "val.DEFAULT_PACKAGES",
             "val.ARCH_PACKAGES",
         ],