فهرست منبع

SCons: Fix up build with Python 3.10

It gives:

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

Follow-up to #90214.
Rémi Verschelde 1 سال پیش
والد
کامیت
7e4c150573
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      SConstruct

+ 1 - 1
SConstruct

@@ -335,7 +335,7 @@ if selected_platform not in platform_list:
     elif selected_platform != "list":
     elif selected_platform != "list":
         print(f'Invalid target platform "{selected_platform}".')
         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>.")
     print("Please run SCons again and select a valid platform: platform=<string>.")
     Exit(0 if selected_platform == "list" else 255)
     Exit(0 if selected_platform == "list" else 255)