SCons: Avoid using Python f-string to preserve Python 3.5 compat

Fixes #50629.

(cherry picked from commit d1b39f0a14)
This commit is contained in:
Rémi Verschelde 2021-07-20 10:12:46 +02:00
parent f218e9e929
commit 3c8faed9e9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -682,7 +682,7 @@ if "env" in locals():
def print_elapsed_time():
elapsed_time_sec = round(time.time() - time_at_start, 3)
time_ms = round((elapsed_time_sec % 1) * 1000)
print(f"[Time elapsed: {time.strftime('%H:%M:%S', time.gmtime(elapsed_time_sec))}.{time_ms:03}]")
print("[Time elapsed: {}.{:03}]".format(time.strftime("%H:%M:%S", time.gmtime(elapsed_time_sec)), time_ms))
atexit.register(print_elapsed_time)