summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-20 11:05:52 +0200
committerGitHub <noreply@github.com>2021-07-20 11:05:52 +0200
commit439bb8323d260e9d9cad9961265cb4823f17f825 (patch)
tree0805b130c54a8424b65652702d35350002cee163
parentfa569898189227d778145712b871dde20390a170 (diff)
parentd1b39f0a145fe73621e5d301008a866f0d8be76a (diff)
Merge pull request #50635 from akien-mga/scons-py3.5-no-fstring
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 601b2d6e80..5dec3f2020 100644
--- a/SConstruct
+++ b/SConstruct
@@ -759,7 +759,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)