From b6d6f5367da1f2e3f749c358ae8563c56a0cc395 Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Mon, 7 Dec 2020 23:45:21 +0000 Subject: bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685) --- Tools/clinic/clinic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 40c95e4..d350a9a 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -1769,7 +1769,7 @@ def write_file(filename, new_contents): pass # Atomic write using a temporary file and os.replace() - filename_new = f"{filename}.new" + filename_new = "{}.new".format(filename) with open(filename_new, "w", encoding="utf-8") as fp: fp.write(new_contents) -- cgit v0.12