bpo-42574: Use format() instead of f-string in Tools/clinic/clinic.py to allow using older Python versions (GH-23685)
This commit is contained in:
parent
7c79798238
commit
b6d6f5367d
|
@ -1769,7 +1769,7 @@ def write_file(filename, new_contents):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Atomic write using a temporary file and os.replace()
|
# 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:
|
with open(filename_new, "w", encoding="utf-8") as fp:
|
||||||
fp.write(new_contents)
|
fp.write(new_contents)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue