From d01377085091486339b136b2a320714256dbbb8a Mon Sep 17 00:00:00 2001 From: Dana Singh Date: Thu, 2 Jan 2025 09:30:08 -0500 Subject: [PATCH] Make print statement f-strings --- fre/make/create_compile_script.py | 2 +- fre/make/create_docker_script.py | 2 +- fre/make/create_makefile_script.py | 5 ++++- fre/make/run_fremake_script.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/fre/make/create_compile_script.py b/fre/make/create_compile_script.py index 2e858a5e..ed131bcc 100644 --- a/fre/make/create_compile_script.py +++ b/fre/make/create_compile_script.py @@ -56,7 +56,7 @@ def compile_create(yamlfile,platform,target,jobs,parallel,execute,verbose): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in platforms.yaml") + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform=modelYaml.platforms.getPlatformFromName(platformName) ## Make the bldDir based on the modelRoot, the platform, and the target diff --git a/fre/make/create_docker_script.py b/fre/make/create_docker_script.py index 2e9eb558..cde401c2 100644 --- a/fre/make/create_docker_script.py +++ b/fre/make/create_docker_script.py @@ -42,7 +42,7 @@ def dockerfile_create(yamlfile,platform,target,execute): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in platforms.yaml") + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform = modelYaml.platforms.getPlatformFromName(platformName) diff --git a/fre/make/create_makefile_script.py b/fre/make/create_makefile_script.py index 215883e7..3a3ccaec 100644 --- a/fre/make/create_makefile_script.py +++ b/fre/make/create_makefile_script.py @@ -9,6 +9,9 @@ import fre.yamltools.combine_yamls as cy def makefile_create(yamlfile,platform,target): + """ + Create the makefile + """ srcDir="src" checkoutScriptName = "checkout.sh" baremetalRun = False # This is needed if there are no bare metal runs @@ -39,7 +42,7 @@ def makefile_create(yamlfile,platform,target): if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in platforms.yaml") + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform=modelYaml.platforms.getPlatformFromName(platformName) ## Make the bldDir based on the modelRoot, the platform, and the target diff --git a/fre/make/run_fremake_script.py b/fre/make/run_fremake_script.py index 548cd7f8..f1e44970 100644 --- a/fre/make/run_fremake_script.py +++ b/fre/make/run_fremake_script.py @@ -69,7 +69,7 @@ def fremake_run(yamlfile,platform,target,parallel,jobs,no_parallel_checkout,exec if modelYaml.platforms.hasPlatform(platformName): pass else: - raise ValueError (platformName + " does not exist in platforms.yaml") + raise ValueError (f"{platformName} does not exist in platforms.yaml") platform = modelYaml.platforms.getPlatformFromName(platformName)