Skip to content

Commit b6d6f53

Browse files
authored
bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685)
1 parent 7c79798 commit b6d6f53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/clinic/clinic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ def write_file(filename, new_contents):
17691769
pass
17701770

17711771
# Atomic write using a temporary file and os.replace()
1772-
filename_new = f"{filename}.new"
1772+
filename_new = "{}.new".format(filename)
17731773
with open(filename_new, "w", encoding="utf-8") as fp:
17741774
fp.write(new_contents)
17751775

0 commit comments

Comments
 (0)