From 72951402107c0cf048bb980fa883a039542d5212 Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 3 May 2026 02:47:43 +0200 Subject: [PATCH] fix: replace remaining nested double-quote f-strings for Python <3.12 compatibility --- tools/legacy/build_plugin_2501_vs2022.py | 6 +++--- tools/legacy/build_plugin_2501_vs2026.py | 6 +++--- tools/legacy/build_plugin_2600_vs2026.py | 2 +- tools/legacy/build_plugin_2601_vs2026.py | 6 +++--- tools/legacy/build_plugin_vs2022.py | 6 +++--- tools/legacy/build_plugin_vs2026.py | 6 +++--- tools/legacy/build_plugin_zstd_vs2026.py | 6 +++--- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/tools/legacy/build_plugin_2501_vs2022.py b/tools/legacy/build_plugin_2501_vs2022.py index b563d82..6c1b7f1 100644 --- a/tools/legacy/build_plugin_2501_vs2022.py +++ b/tools/legacy/build_plugin_2501_vs2022.py @@ -328,7 +328,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -917,14 +917,14 @@ Examples: print(f" - {config.name}") # Show timing summary - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print() diff --git a/tools/legacy/build_plugin_2501_vs2026.py b/tools/legacy/build_plugin_2501_vs2026.py index 73b4811..b17af7e 100644 --- a/tools/legacy/build_plugin_2501_vs2026.py +++ b/tools/legacy/build_plugin_2501_vs2026.py @@ -344,7 +344,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -944,14 +944,14 @@ Examples: print(f" - {config.name}") # Show timing summary - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print() diff --git a/tools/legacy/build_plugin_2600_vs2026.py b/tools/legacy/build_plugin_2600_vs2026.py index 1e5c639..dd6f9c4 100644 --- a/tools/legacy/build_plugin_2600_vs2026.py +++ b/tools/legacy/build_plugin_2600_vs2026.py @@ -346,7 +346,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', diff --git a/tools/legacy/build_plugin_2601_vs2026.py b/tools/legacy/build_plugin_2601_vs2026.py index 2ffcc9e..0cbd77e 100755 --- a/tools/legacy/build_plugin_2601_vs2026.py +++ b/tools/legacy/build_plugin_2601_vs2026.py @@ -332,7 +332,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -743,14 +743,14 @@ Examples: if not success: print(f" - {config.name}") - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print() diff --git a/tools/legacy/build_plugin_vs2022.py b/tools/legacy/build_plugin_vs2022.py index de98c9e..31a5254 100644 --- a/tools/legacy/build_plugin_vs2022.py +++ b/tools/legacy/build_plugin_vs2022.py @@ -328,7 +328,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -917,14 +917,14 @@ Examples: print(f" - {config.name}") # Show timing summary - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print() diff --git a/tools/legacy/build_plugin_vs2026.py b/tools/legacy/build_plugin_vs2026.py index 3c1b826..bc2e16d 100644 --- a/tools/legacy/build_plugin_vs2026.py +++ b/tools/legacy/build_plugin_vs2026.py @@ -344,7 +344,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -944,14 +944,14 @@ Examples: print(f" - {config.name}") # Show timing summary - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print() diff --git a/tools/legacy/build_plugin_zstd_vs2026.py b/tools/legacy/build_plugin_zstd_vs2026.py index 01c69e0..aaa1613 100644 --- a/tools/legacy/build_plugin_zstd_vs2026.py +++ b/tools/legacy/build_plugin_zstd_vs2026.py @@ -332,7 +332,7 @@ def build_configuration( cmd = [ str(msbuild_path), str(project_file), - f'/t:{"Rebuild" if rebuild else "Build"}', + f'/t:{'Rebuild' if rebuild else 'Build'}', f'/p:Configuration={config.config}', f'/p:Platform={config.platform}', f'/p:OutDir=Build\\{config.name}\\', @@ -743,14 +743,14 @@ Examples: if not success: print(f" - {config.name}") - print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"\n{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}Build Summary:{Colors.RESET}") for config, success, build_time, file_size, dest_path in build_results: status = "OK" if success else "FAIL" row_color = Colors.BRIGHT_GREEN if success else Colors.RED size_str = f"{file_size:,} bytes" if file_size > 0 else "N/A" print(f" {row_color}{status}{Colors.RESET} {config.name:15s} - {format_time(build_time):8s} - {size_str}") - print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{"-"*50}{Colors.RESET}") + print(f"{Colors.BOLD}{Colors.BRIGHT_CYAN}{'-'*50}{Colors.RESET}") print(f"Total time: {Colors.BRIGHT_WHITE}{format_time(total_time)}{Colors.RESET}") print()