summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2020-12-07 23:45:21 (GMT)
committerGitHub <noreply@github.com>2020-12-07 23:45:21 (GMT)
commitb6d6f5367da1f2e3f749c358ae8563c56a0cc395 (patch)
treeced6d22f3bd7c5efcc0b8e3bdeb5b2eba6081ad1
parent7c797982383ebfd9cca39c480dcf6132979dd06f (diff)
downloadcpython-b6d6f5367da1f2e3f749c358ae8563c56a0cc395.zip
cpython-b6d6f5367da1f2e3f749c358ae8563c56a0cc395.tar.gz
cpython-b6d6f5367da1f2e3f749c358ae8563c56a0cc395.tar.bz2
bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685)
-rwxr-xr-xTools/clinic/clinic.py2
1 files changed, 1 insertions, 1 deletions
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)