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:
Pablo Galindo 2020-12-07 23:45:21 +00:00 committed by GitHub
parent 7c79798238
commit b6d6f5367d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)