diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-12-07 23:45:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 23:45:21 (GMT) |
commit | b6d6f5367da1f2e3f749c358ae8563c56a0cc395 (patch) | |
tree | ced6d22f3bd7c5efcc0b8e3bdeb5b2eba6081ad1 | |
parent | 7c797982383ebfd9cca39c480dcf6132979dd06f (diff) | |
download | cpython-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-x | Tools/clinic/clinic.py | 2 |
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) |