Skip to content

Commit

Permalink
SCons: Fix up build with Python 3.10
Browse files Browse the repository at this point in the history
It gives:

> SyntaxError: f-string expression part cannot include a backslash

Follow-up to #90214.
  • Loading branch information
akien-mga committed Apr 5, 2024
1 parent 4ff5731 commit 7e4c150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ if selected_platform not in platform_list:
elif selected_platform != "list":
print(f'Invalid target platform "{selected_platform}".')

print(f"The following platforms are available:\n\t{'\n\t'.join(platform_list)}\n")
print("The following platforms are available:\n\t{}\n".format("\n\t".join(platform_list)))
print("Please run SCons again and select a valid platform: platform=<string>.")
Exit(0 if selected_platform == "list" else 255)

Expand Down

0 comments on commit 7e4c150

Please sign in to comment.