]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using...
authorPablo Galindo <Pablogsal@gmail.com>
Mon, 7 Dec 2020 23:45:21 +0000 (23:45 +0000)
committerGitHub <noreply@github.com>
Mon, 7 Dec 2020 23:45:21 +0000 (23:45 +0000)
Tools/clinic/clinic.py

index 40c95e454cd88273036963e8b016e3bf74f407c8..d350a9a9d72eaf1befb40b046c7d5593a16ff5df 100755 (executable)
@@ -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)